SQLite - help getting started

Just starting out? Need help? Post your questions and find answers here.
David
User
User
Posts: 14
Joined: Sat Mar 05, 2005 11:23 am

SQLite - help getting started

Post by David »

Hi.

Could anyone help me get started with using SQLite with PB please? I have not done any programming for some time but my boss has recently asked me to write a small programme for where I work. Once I can write a very basic programme I'll learn the rest through the documentation but I'd be very grateful for some help getting started. Thank you.
Pureabc
User
User
Posts: 76
Joined: Mon Jan 16, 2006 1:11 am

Post by Pureabc »

You might want to take a look at this very good example (by netmaestro):

http://www.purebasic.fr/english/viewtopic.php?t=22209

Good luck.
David
User
User
Posts: 14
Joined: Sat Mar 05, 2005 11:23 am

Post by David »

Thank you Pureabc, but I have not been able to run the example. I get the following error message:

"Line 49: SQLite3_InitLib is not a function, array, macro or linked list."

I am running PB4 on Windows XP. Does anyone have any idea what the problem is please?

Thanks.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You have to put the PBOSL SQLite3 library into your userlibraries folder. You can download it from PureArea.net. Also, you'll have to have a movies database made with the structure described in the sourcecode. SQLite has a utility you can use for that, it's easy. Just make a database and stick a couple of records in it and you're off and running.
BERESHEIT
David
User
User
Posts: 14
Joined: Sat Mar 05, 2005 11:23 am

Post by David »

Thank you very much netmaestro. There's no problem now.
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Post by GG »

Is new DLL Sqlite 3.3.8 compatible with PBOSL_SQlite ?
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

I loaded it and it worked ok but I went back to the older one due to size - I include the dll in my exe.

cheers
Post Reply