The BDB SQL interface comes as a part of the Oracle Berkeley DB download. This can be downloaded from the Oracle Berkeley DB download page.
The BDB SQL interface is automatically built and installed
whenever you build or install Berkeley DB for a Windows
system. The BDB SQL interface dll
s and the
command line interpreter have names that differ from a
standard SQLite distribution as follows:
dbsql.exe
This is the command line shell. It operates identically to the SQLite sqlite3.exe shell.
libdb_sql60.dll
This is the library that provides the BDB SQL interface.
It is the equivalent of the SQLite
sqlite3.dll
library.
For instructions on building and installing Berkeley DB, see the Berkeley DB Installation and Build Guide, which you can find at this URL:
http://docs.oracle.com/cd/E17076_02/html/installation/index.html
If you are upgrading an existing BDB SQL installation, and you are upgrading from release 6.1.19 or lower, then see the SQL database upgrade instructions in the Updated SQLite Version section of the Upgrading Berkeley DB 12.1.6.0 applications to Berkeley DB 12.1.6.1 chapter in the Berkeley DB Installation and Build Guide.
You will create the Berkeley DB ADO.NET package. First download
sqlite-dotnetsrc-1097000.zip
from the SQLite download page
https://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki.
Then, in the directory <db>/dist
run this command:
./s_sql_drivers -adodotnet \ -ado_package /path/to/sqlite-dotnetsrc-1097000.zip
This will create the package dbsql-adodotnet-12.1.6.2.zip in the
directory <db>/release
.
Microsoft .NET Framework 3.5 SP1
.
Microsoft Visual Studio SDK
.
Microsoft Windows Mobile 6.5.3 Developer Tool Kit (DTK)
.
The package contains Visual Studio solution files:
SQLite.NET.2008.sln
and
SQLite.NET.2010.sln
For use by with Visual Studio 2008 or 2010. Note that these solution files do not build support for Linq or SQLite Designer.
SQLite.NET.2008.MSBuild.sln
and
SQLite.NET.2010.MSBuild.sln
For use with MSBuild (Microsoft Build Engine). These can also be used with Visual Studio. These solutions exclude SQLite Designer and CompactFramework. By default, these do not build support for Linq.
ReleaseNativeOnly
choose either
Win32
or x64
depending on your target platform.
Building BDB SQL ADO.NET for Windows Mobile requires Windows Mobile 6.5.3 Professional DTK. Typical requirements for installing this toolkit are:
Visual Studio 2005 SP1 or Later
ActiveSync 4.5
.NET CompactFramework 2.0 SP1
Windows Mobile 6 SDK
To build BDB SQL ADO.NET for Windows Mobile, do the following:
SQLite.NET.2008.WinCE.sln
solution file in Visual Studio 2008.
Load Project Normally
ReleaseNativeOnly
.
Configuration Manager
->new
,
then type or select the platform
Windows Mobile 6.5.3 Professional DTK (ARMV4I)
.
Choose to copy settings from
Pocket PC 2003 (ARMV4I)
To build the SQL shell from the ADO.NET package, load the
appropriate Berkeley DB solution file into Visual Studio.
For desktop Windows, the solution file will be in:
db-X.X.XX/build_windows
. For Windows
Mobile it will be in: db-X.X.XX/build_wince
.
Where X.X.XX
is the version of
Berkeley DB in the package.
Once the project is loaded, build the db_sql_shell
project.