Jump to content

SQLite UDF Help


Recommended Posts

I would like to have basic access to a database that I made using SQLite. I have read some of the forums for SQLite and I am not following. I just want to get connected and make insert, update, delete, and select queries from an autoit script. Can someone help me out with the basic code in order to do this. The databases that I am trying to access is in the @scriptdir or point me to a clear and well documented example. Thanks!

Link to comment
Share on other sites

Press F1 if you're in a .au3 file in SciTE. Or run "AutoIt Help File" in the start-menu.

Or start manually by running AutoIt.chm or AutoIt3Help.exe.

Link to comment
Share on other sites

I feel stupid about this, but where is the help file. I am only familiar with the Online Documentation and I don't see anything about SQL on there. Please don't judge to harshly.

Don't feel stupid man, the only stupid questions are the ones you don't ask -and everyone else's ;) Everybody starts at the same place, and everyone has had to look for the help at one time or another
Link to comment
Share on other sites

Study the examples in the help file under "User Defined Functions Reference" >> "SQLite Management".

You'll need _SQLite_Open to make a connection, _SQLite_Exec to issue insert and update statements and _SQLite_GetTable and/or _SQLite_GetTable2d to load the resultset of select queries.

Not knowing what the schema of you DB is makes it a little hard to provide working code for you. So try those functions and ask here again for more precise help or ask SQL/SQLite questions.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Perfect. Don't hesitate to come back in case of difficulty.

Good luck.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...