On Thu, 20 Jun 2013 06:37:22 +0000, YAN HONG YE <yanhong...@mpsa.com> wrote:
> the ta-lib.org, the ta-lib library could use in EXCEL, > I wanna use it in the sqlite database, but I don't know > how to write the c or c++ code to load the ta-lib api in > sqlite database, anyone know it? You cannot load a library into a database. You can link a library with your application, together with the sqlite3 library. Then use the sqlite extension API, as documented in http://sqlite.org/c3ref/create_function.html to add self-written functions to the SQL syntax. Those functions can then call the ta-lib functions where needed. YOu might not need ta-lib at all. There are several open source extension libraries available which may or may not do what you need. Search the web and the archives of this mailing list. One example is http://www.schemamania.org/sql/sqlite/udf/ Note: The whole SQLite API is C, not C++, but it can be called from C++. Warning: I've never done any of this myself, and I don't know what kind of API ta-lib offers. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users