Commit Graph
11 Commits
Author SHA1 Message Date
Jimmytaker a5e1ab8a2e Fix not being able to handle blobs > 16 MB. Limit now at 256 MB 2014-12-29 14:54:25 +01:00
Jimmytaker 850d9e169d Fix not being able to handle blobs > 16 MB. Limit now at 256 MB 2014-12-22 20:14:40 +01:00
Jimmytaker 49bc1e3c40 New useful function (generate_table_schemas) for Windows but not only 2014-12-22 20:13:31 +01:00
Jimmytaker cb65d4f3dd Compiles with VC++ as a .dll. Set up to use static glib, libiconv, libintl for ease of use. 2014-12-22 20:09:43 +01:00
Jimmytaker aab7a561f1 VS2012 Build project and gitignore update 2014-12-22 19:55:11 +01:00
Jimmytaker 46005ae009 MDB_DEPRECATED redefined, Constructor MACRO, generate_table_schema changed to not static, date_fmt to ISODate
__attribute__ does not exist in Visual Studio. Therefore replaced wherever it appeared with a macro:
Redefines MDB_DEPRECATED to support Visual Studio
Define a Constructor MACRO so that __attribute__((constructor/destructor)) behavior is achieved in Visual Studio.

Just using generate_table_schema through mdb_print_schema deletes the purpose of a very good tool. generate_table_schemas is a rewrite of generate_table_schema but sends the data to a char* instead of FILE*. There is NO fmemopen() or similar in Visual Studio, so there is NO way to access memory through a FILE* except for first writing to the disk and then reading from the disk in memory.

I cannot suggest how to handle the case when td == 0 for the dates. The databases I work with often have just 00:00:00 in the DateTime column which is not consistent with the rest of the column either, but I have to deal with it somehow.

Leaving void* where char* is needed as a function parameter returns a compilation error in Visual Studio.
2013-01-14 19:27:53 +01:00
Jimmytaker cf7980923e gitignore update 2013-01-14 11:03:16 +01:00
Jimmytaker c9f602480b Code cleanup
Enforce consistency g_malloc - g_free and malloc - free
Move var declarations on top of functions
2013-01-13 23:17:07 +01:00
Jimmytaker 70c6fb7551 Added support for sqlite 2013-01-13 22:32:31 +01:00
Jimmytaker 9d81bdde56 t 2012-12-31 21:30:35 +01:00
Jimmytaker 6df0aa6ce0 Port to Windows and SQLite Extension 2012-12-31 20:40:12 +01:00