argumentum

SQLite in distros 3.3.14.2 and beta 3.3.15.0

6 posts in this topic

Searching for clues to my problem, I found, in AutoIt Help and Support, in a topic titled problems downloading sqlite3.dll , I added my concerns and was told by @guinness to start my own, so, I figured that this area would be best to post my findings.

The solution I proposed is in that topic, no need to copy here again.

I downloaded the ZIPs and installers for distributions of stable and beta and could not find the DLLs for SQLite, nor a functional download within the UDFs attempt to download, still in place in the beta.

@guinness said that is now part of the distro but I don't find it. Therefore this new topic.

I can find my way around Autoit by now BUT it took me an hour ( give or take ) of scratching my head, when, in a newly installed PC ( with win7 x64 that I remote into ), SQLite was not working and I could not figure out why, was some time since I tried DB stuff, what was I doing wrong ( usually Autoit is magical and everything just works without truly knowing how ).

Anyway. I just wanted to bring this up. If is a mishap from the distro, now is known, if it's my bad then please guide me.

Thanks much

Share this post


Link to post
Share on other sites

All pkg for AutoIt Sqlite are in https://www.autoitscript.com/autoit3/pkgmgr/sqlite

I confess I don't know where the pkgmgr link is defined in the current Web

The next beta have the link in the AutoIt help for _SQLite_Startup()

..based on the experience that bandwidth will be abused, no link should be provided. That strategy showed to be impractical.
The idea of distributing the DLLs as files and not as a compressed file within an .au3, I believe, will be most successful. Placing it in a folder that is root or child, in relationship to autoit3.exe location, in my view, would be best.

My posting is not to solve my problem per se but to help the developers, or, if I'm missing something, be helped by.

I enjoy using AutoIt and if I can contribute in any way, I'd like to do so.

Also, maybe, having a @AutoItDir would come in handy :D

Share this post


Link to post
Share on other sites

I do not see reference to SQLite in the new beta announcement.  Am I missing something?

https://www.autoitscript.com/forum/topic/177239-problems-downloading-sqlite3dll/#comment-1272436 by @guinness post #16, 21 Nov 2015.

 

Would it be possible to modify the standard https://www.autoitscript.com/autoit3/docs/libfunctions/_SQLite_Startup.htm function to do the following: (a) first PROMPT the user for confirmation of download and then (b) download from SQLite Download Page https://www.sqlite.org/download.html. (c) Bundle the SQLite.dll with the standard AutoIt Download? Different from current where it simply does nothing and not the same as before where it did a silent download from here?

This should achieve the following

1. Users will be made aware of the download;

2. Download will be from original source (not secondary/mirror)

Benefits should be that users are made aware of the download, they should consider alternate options - such as storing SQLite centrally and/or supplying own copy.  

Several recent threads have highlighted this issue.  If the download burden was this great, the demand may be met with an alternate solution.


Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

Users who implement SQLite in their application are developers, so you figure it out about to shipping it. The whole point it's included now is because people were misusing this handy feature of automatic downloading and thus relying on Jon's good nature of providing FREE hosting. So thanks for your suggestions, but on this occasion they won't be taken into consideration.

Oh and don't hijack an old thread. Wow, deja vu there!!!


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Thanks Guinness.  

Thought about a new thread, but this one did not seem old to me...  

2nd time reference being made to SQLite included in the beta, but I can't find that in the documentation? And it is not in the beta 3.3.15.0 zip file...  I can only presume you are refering to it being included in a next version after 3.3.15.0...?

 


Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

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

  • Similar Content

    • AdamUL
      By AdamUL
      I have been testing AutoIt 3.3.14.3 with SQLite, and the Help File examples.  The examples that I have tested are throwing errors or not doing anything.  I have sqlite3.dll, sqlite3_x64.dll, and sqlite3.exe in the directories with the testing script.  I am copying the examples directly from the help file into a test script for testing with no edits.  The _SQLite_GetTable2d example is returning an error ("Library used incorrectly") with each _SQLite_Exec command.  The _SQLite_FastEncode example returns an empty dialog box.  The _SQLite_Exec example only prints out the SQLite version, and nothing else in the SciTE console.  Currently, I'm still searching for what is causing this issue.  I'm on Windows 7 Enterprise 64-bit.  Is anyone else having this issue?  
       
      Adam
       
    • Burgs
      By Burgs
      Greetings,
        I have SQLite setup within my AutoIT program...I'm trying to accomplish what should be a relatively simple task.  I want to be able to return an array of 'table' names for an established database...I believe this might be possible using the '_SQLite_SQLiteExe' command...since it seems to be able to access SQLite schemas...?  The ".tables" command is one of them...if I am not mistaken that command returns a list of all table names in the active database.
        I am attempting the following:
      #include <SQLite.au3> #include <SQLite.dll.au3> Global $hDb, $sIn, $sOut ... $sIn = ".tables" & @CRLF _SQLite_SQLiteExe($hDb, $sIn, $sOut) if @error == 0 Then ;Show Table (using SQLite3.dll) Else if @error == 2 Then ConsoleWrite("ERROR: Sqlite3.exe file not found" & @CRLF) Else ConsoleWrite("ERROR: @error=" & @error & " when calling _SQLite_SQLiteExe" & @CRLF) EndIf ;@error is "2"...OR NOT... EndIf ;@error is "0"...OR NOT... ...   The error being thrown is "ERROR: Sqlite3.exe file not found" ...
        Am I required to have the Sqlite3.exe installed in my directory (i.e. @ScriptsDir)...???  I do not have it in there at present because I did not believe it was necessary with the 'include' calls to "SQLite.au3" and "SQLite.dll.au3"...any advice appreciated.  Thanks in advance. 
      Regards
       
       
       
       
       
       
       
    • FrancescoDiMuro
      By FrancescoDiMuro
      Good evening guys
      I am working on a little project, in which I have to retrieve 8000+ rows of data from a table, from a SQLite database, to populate a combobox 
      This is what I tried 'til now, but it still takes about 12 seconds to populate the combobox.
      _SQLite_Exec($objDatabase, "BEGIN TRANSACTION;") If _SQLite_GetTable($objDatabase, "SELECT DISTINCT Comune FROM LISTA_COMUNI;", $arrRisultatoQuery, $intRighe, $intColonne) = $SQLITE_OK Then For $i = 2 To UBound($arrRisultatoQuery) - 1 If $i < UBound($arrRisultatoQuery) - 1 Then GUICtrlSetData($cbo_ComuneNascita, $arrRisultatoQuery[$i] & "|") Else GUICtrlSetData($cbo_ComuneNascita, $arrRisultatoQuery[$i]) EndIf Next _SQLite_Exec($objDatabase, "COMMIT;") Are there any other solution to retrieve 8000+ records from a SQLite database?
      Thank you very much  
    • FrancescoDiMuro
      By FrancescoDiMuro
      Good morning community!
      I am working on a script which read from a text file ( .txt ) and should import all the content in a SQLite3 DB, in order to execute some queries that should be difficult to execute on a text file.
      So, I was looking for something very very fast, because the file could be very large ( I don't know exaclty how much can became big, but I know a lot of rows, it's a log file ... )
      I found the "Import method", but I don't know If I can implement it in a query ( @jchd, it's your turn!  )
      Do you know some methods that I can implement in my script to have a very very fast import of thousands and thousands rows in a SQLite3 DB?
      Thanks a lot
      Francesco
    • FrancescoDiMuro
      By FrancescoDiMuro
      Good morning guys
      I was trying to use again SQLite in AutoIt, and I've again an issue: I can't startup SQLite...
      Can you please show me the way to set the enviornment for a SQLIte usage in AutoIt? Step by step, I'll follow your suggestion(s).

      Thanks for everyone will reply!

      Francesco