
MsgBox "Version: "+r.IdxField( 1).Code: Private Declare Function SHGetSpecialFolderLocation Lib "shell32" (ByVal hWnd As Long, ByVal nFolder As Long, Pidl As Long) As Long If db.Connect then dim r as RecordSet = db.SQLSelect( "select sqlite_version()") connect to database // in this example it is SQLite, // but can also be Sybase, Oracle, Informix, DB2, SQLServer, InterBase, MySQL, SQLBase and ODBC dim path as string = "/tmp/test.db" // put the database in the temporary folder If not s3.LoadDylib(GetFolderItem( "liblitesync.0.dylib").NativePath) thenĭb.Option(SQLConnectionMBS.kOptionLibrarySQLite) = GetFolderItem( "liblitesync.0.dylib").NativePath If not s1.LoadDylib(GetFolderItem( "libbinn.1.dylib").NativePath) then

If not s2.LoadDylib(GetFolderItem( "libuv.1.dylib").NativePath) then preload the libraries dim s2 as new SoftDeclareMBS Next you can load them just like other SQLite library with our plugin classes SQLDatabaseMBS or SQLConnectionMBS. Install_name_tool -id liblitesync.0.dylib Install_name_tool -change /usr/local/lib/libuv.1.dylib liblitesync.0.dylib Install_name_tool -change libbinn.1.dylib liblitesync.0.dylib Than you change the library and dependencies via Terminal like this:


Developers can use their SQLite library litesync replacement to add a sync to their application.Īs a client asked whether it works in Xojo with MBS Xojo SQL Plugin and yes, it works.įor MacOS, you need the library files libbinn.1.dylib, libuv.1.dylib and liblitesync.0.dylib. LiteSync and Xojo The company GENSIS SISTEMAS LTDA provides a variation of the SQLite library with a sync possibility.
