#1 2022-11-18 14:54:12

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

[solved] Creating db with TSQLDBSQLite3ConnectionProperties.Create

I've just started using direct SQLite db access (with TSQLDBSQLite3ConnectionProperties,TSQLDBSQLite3Connection and so on), without using the ORM layer.

The the db file is not existing yet, does TSQLDBSQLite3ConnectionProperties.Create auto creates the db file?
If not, how to create the db file?

Thanks.

Last edited by edwinsn (2022-11-19 03:27:15)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2022-11-19 03:26:28

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: [solved] Creating db with TSQLDBSQLite3ConnectionProperties.Create

OK, I was out and reading the docs without a computer to test when posting this question wink

Now just tested it, after calling TSQLDBSQLite3ConnectionProperties.MainConnection.Connect the db file will be auto created.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB