Trying with ValentinaDB for C++
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Tue Jan 10 17:38:23 CST 2012
On 1/8/12 7:48 PM, "Ruslan Zasukhin" <ruslan_zasukhin at valentina-db.com>
wrote:
Hi Cam,
What problem with such code ?
==========================
ValentinaInit(4 * 1024 * 1024);
VSQL::I_SqlDatabase_Ptr pSqlDb = CreateSqlDatabase(kStorage_Disk);
FBL::I_Database_Ptr pFblDb = pSqlDb->get_BaseDatabase();
I_Location_Ptr pLocation =
CreateDiskLocation("D:\\Data\\Valentina\\test_db.vdb");
pFblDb->put_Location( pLocation );
// if we want create db first time:
{
pFblDb->Create();
PSqlDb->SqlExecute( "CREATE TABLE T1( f1 ulong)" );
}
PFblDb->Close()
ValentinaShutDown()
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list