fielmann Posted December 5, 2008 Share Posted December 5, 2008 Hi Folks, #include <SQLite.au3> #include <SQLite.dll.au3> _SQLite_Startup () If @error > 0 Then MsgBox(16, "SQLite Error", "SQLite.dll Can't be Loaded!") Exit - 1 EndIf _SQLite_Open (); Open a :memory: database If @error > 0 Then MsgBox(16, "SQLite Error", "Can't Load Database!") Exit - 1 EndIf _SQLite_Close () _SQLite_Shutdown () Basic question: Why should I open a database as a "memory database"? When I close the database the content is lost <- correct ?! Link to comment Share on other sites More sharing options...
ChrisL Posted December 5, 2008 Share Posted December 5, 2008 Hi Folks, #include <SQLite.au3> #include <SQLite.dll.au3> _SQLite_Startup () If @error > 0 Then MsgBox(16, "SQLite Error", "SQLite.dll Can't be Loaded!") Exit - 1 EndIf _SQLite_Open (); Open a :memory: database If @error > 0 Then MsgBox(16, "SQLite Error", "Can't Load Database!") Exit - 1 EndIf _SQLite_Close () _SQLite_Shutdown () Basic question: Why should I open a database as a "memory database"? When I close the database the content is lost <- correct ?! Yes all the content is lost when you close it. You might want to temporarily store a load of data and use an SQL query to sort the information out for what you need but you might not be interested in retaining the data after you have used it [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
KaFu Posted December 5, 2008 Share Posted December 5, 2008 Because it's much faster than a file database... for saving the contents take a look at my signature , i wrote a UDF for that. For re-loading the content take a look at the source of SMF (I'm too lazy now to look up the function). Best Regards OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) 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