Releases: XvayS/libdb
Releases · XvayS/libdb
v0.3
Version | Notes |
---|---|
v0.3 | 27 Jan 2019 |
+ Added MySQL support (see DB_Plugin_MySQL ) |
|
+ Added SQL bind variables (see DB_SetString() , DB_SetLong() etc.) |
|
% Modified library bindings and example code (rewritten with ScriptCore3 syntax) |
|
% Modified some bindings and internal code which broke backward compatibility (see release notes) |
Breaking changes
-
Most functions that were returning non zero on success and
0
otherwise are returningBoolean
now (e.g.DB_NextRow()
,DB_Query()
, etc.)For example, this:
if DB_NextRow(0) <> 0 then // and if DB_NextRow(0) = 0 then
should be replaced with:
if DB_NextRow(0) then // and if not DB_NextRow(0) then
-
You should now call one of
DB_UseMySQL()
,DB_UseODBC()
,DB_UsePostgreSQL()
,DB_UseSQLite()
procedures before using any functions related to the corresponding database plugins. -
Database plugins and column type constants are declared as enumerations now:
{ Database plugins enumeration for the DB_Open() function } type TDatabasePluginType = (DB_Plugin_Undefined, DB_Plugin_ODBC, DB_Plugin_SQLite, DB_Plugin_PostgreSQL, DB_Plugin_MySQL); { Database column types enumeration for the DB_ColumnType() function } type TDatabaseColumnType = (DB_Type_Undefined, DB_Type_Long, DB_Type_String, DB_Type_Float, DB_Type_Double, DB_Type_Quad);