grasshopper3 Posted September 17, 2010 Share Posted September 17, 2010 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 More sharing options...
AdmiralAlkex Posted September 17, 2010 Share Posted September 17, 2010 Did you look at "SQLite Management" in the helpfile? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
grasshopper3 Posted September 17, 2010 Author Share Posted September 17, 2010 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. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 17, 2010 Share Posted September 17, 2010 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
seandisanti Posted September 17, 2010 Share Posted September 17, 2010 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 More sharing options...
jchd Posted September 20, 2010 Share Posted September 20, 2010 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 hereRegExp tutorial: enough to get startedPCRE 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 More sharing options...
grasshopper3 Posted September 20, 2010 Author Share Posted September 20, 2010 Thanks for all the help. Once I figured out where the help file I was able to get basic SQLite functionality within a hour. Link to comment Share on other sites More sharing options...
jchd Posted September 20, 2010 Share Posted September 20, 2010 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 hereRegExp tutorial: enough to get startedPCRE 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 More sharing options...
57ar7up Posted January 17, 2014 Share Posted January 17, 2014 I've made a simple wrapper for SQLite - >SQLiteEx SQLiteEx UDF - Easy SQLite Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now