Skip to content

Releases: XvayS/libdb

v0.3

01 Mar 16:18
Compare
Choose a tag to compare
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

  1. Most functions that were returning non zero on success and 0 otherwise are returning Boolean 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
  2. 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.

  3. 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);

v0.2

01 Mar 15:47
Compare
Choose a tag to compare
Version Notes
v0.2 12 Dec 2012
% Updated the lib, so its Linux version depends on unixODBC instead of iODBC now

v0.1

01 Mar 15:39
Compare
Choose a tag to compare
Version Notes
v0.1 06 Jun 2012
* First public release