Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-07

SqLite

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

SteveG

Anybody know if it is possible to dynamically load the sqlite library ? At the moment my app aborts if the lib is not found at startup, I would like to have control of this for a later stage

Thanks - SteveG

Reply by email

Henry Vermaak
to SteveG

2009/7/13 SteveG :

Anybody know if it is possible to dynamically load the sqlite library ? At the moment my app aborts if the lib is not found at startup, I would like to have control of this for a later stage

You can use sqlite3dyn unit, then use TryInitialiseSqlite, InitialiseSQLite, ReleaseSQLite funcs. See fpc sources for more info. I don't know how to do this with sqldb, though.

Henry

Reply by email

SteveG
to Henry Vermaak
Henry Vermaak wrote 8 lines
2009/7/13 SteveG : > Anybody know if it is possible to dynamically load the sqlite library ? > At the moment my app aborts if the lib is not found at startup, I would > like to have control of this for a later stage You can use sqlite3dyn unit, then use TryInitialiseSqlite, InitialiseSQLite, ReleaseSQLite funcs. See fpc sources for more info. I don't know how to do this with sqldb, though.

Thanks Henry - will do a little study on these now

Reply by email

Joost van der Sluis
to Henry Vermaak: 2009/7/13 SteveG : You can use sqlite3dyn unit, then use TryInitialiseSqlite,…

Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry Vermaak:

You can use sqlite3dyn unit, then use TryInitialiseSqlite, InitialiseSQLite, ReleaseSQLite funcs. See fpc sources for more info. I don't know how to do this with sqldb, though.

sqldb already uses the sqlite3dyn unit. (Or else Lazarus woudn't start on all machines without sqlite installed)

Joost

Reply by email

Henry Vermaak
to Joost van der Sluis

2009/7/15 Joost van der Sluis :

Show quoted text 8 lines
Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry Vermaak: > You can use sqlite3dyn unit, then use TryInitialiseSqlite, > InitialiseSQLite, ReleaseSQLite funcs. ?See fpc sources for more info. > ?I don't know how to do this with sqldb, though. sqldb already uses the sqlite3dyn unit. (Or else Lazarus woudn't start on all machines without sqlite installed)

Of course - you're right.

Henry

Reply by email

waldo kitty
to Joost van der Sluis: Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry Vermaak: sqldb already…
Joost van der Sluis wrote 8 lines
Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry Vermaak: > You can use sqlite3dyn unit, then use TryInitialiseSqlite, > InitialiseSQLite, ReleaseSQLite funcs. See fpc sources for more info. > I don't know how to do this with sqldb, though. sqldb already uses the sqlite3dyn unit. (Or else Lazarus woudn't start on all machines without sqlite installed)

so.. ermmm... sqlbd == sqlite?? i thought they were separate entities ?? :?

Reply by email

Henry Vermaak
to waldo kitty

2009/7/15 waldo kitty :

Show quoted text 13 lines
Joost van der Sluis wrote: > > Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry > Vermaak: >> >> You can use sqlite3dyn unit, then use TryInitialiseSqlite, >> InitialiseSQLite, ReleaseSQLite funcs. ?See fpc sources for more info. >> ?I don't know how to do this with sqldb, though. > > sqldb already uses the sqlite3dyn unit. (Or else Lazarus woudn't start > on all machines without sqlite installed) so.. ermmm... sqlbd == sqlite?? i thought they were separate entities ?? :?

No, sqldb is the lazarus component. It supports sqlite, as well as mysql, oracle, postgres, etc.

Henry

Reply by email