jpm Posted December 23, 2005 Share Posted December 23, 2005 (edited) Added 'example_TsvImport.au3', Demonstrates Tab Seperated values ImportUpdated bundled SQLite Version to 3.2.8 (Changelog)SQLite.zipBeware: SQLite3.exe crashes if you try to '.import' into a Table that does not exist...Thanks Picasso,Why the import stop in my example around 7 columns and 49 rows? any reason why the dll jump from 120k to 245k? Edited December 23, 2005 by jpm Link to comment Share on other sites More sharing options...
randallc Posted December 23, 2005 Share Posted December 23, 2005 (edited) Hi, @jpm, Seems funny to say so, but post your example and I'll look! import is very finnicky if there are mismatched rows in the csv, by number, blank row etc; expects a very uniform file from what I have tested. FileReadLine to import by insert is slower for larger files than 1000 lines, say,, but you can check each line and modify if needed; see my 2 funcs (and GUI option buttons) in further updated example; [both of mine are slower than necessary at present as I also index every row for fast sorting, especially floating pont rows] CreateDbCSVSlow() [EDIT] _SQLite_ImportCsv( $sCSVFile,$s_Header,$s_Separator) Best, randall (eg my examples OK at 187 lines by 99 cols...) Edited December 23, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
jpm Posted December 23, 2005 Share Posted December 23, 2005 Thanks randallc, starting my 49 th row only 6 columns was defined. So now everything is OK Link to comment Share on other sites More sharing options...
piccaso Posted December 23, 2005 Share Posted December 23, 2005 (edited) any reason why the dll jump from 120k to 245k?its not upx'ed this time.i'm not sure if i should...i Played a bit with the odbc driver (here)looks nice the only downside is that its statically linked with ver. 3.2.7.but maybe its faster with prepare/step/... api ...Merry Christmas everybody Edited December 23, 2005 by piccaso CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
randallc Posted December 24, 2005 Share Posted December 24, 2005 (edited) Hi, Merry Xmas! @piccaso, can we do without sqlite3.dll; or 1.does sqlite.exe use it? [i seem to be able to delete it without any errors] 2. are there any functions that cannot be converted? Best, randall PS Here's the example program all converted to not need sqlite3.dll;; working better and quicker with sqlite3.exe. Needs options 1 of re-indexing a row 2. import or create large files without indexing initially (eg 10^6 rows too slow ; up to 500,000 ok) 3. improve ability to import variable row length files [although slow option now copes with rows shorter than 1st or up to 20 larger] 4. Choose displayed row easier in large dbs. 5. choose lateral display column start (limited to 20 at present for speed) Then I will be happy as a limited display, sort, re-save function. Best, Randall Edited December 27, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
piccaso Posted December 26, 2005 Share Posted December 26, 2005 ... can we do without sqlite3.dll?at least i cant 1.does sqlite.exe use it? [i seem to be able to delete it without any errors]No, its standalone (only needs msvcrt.dll)2. are there any functions that cannot be converted?the use of in memory databases or temp tables is limited. _SQLite_SQliteExe() Opens and Closes the db every call and they are deleted. but you can still use them for bigger transactions... CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
randallc Posted December 26, 2005 Share Posted December 26, 2005 (edited) hi, perhaps I asked the wrong question! Can AutoIt seriously do without sqlite3.dll, to limit the files to only 1 extra? Try my database browser now with nwind.db and tell me your thoughts. Best, Randall Edited December 28, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
randallc Posted December 27, 2005 Share Posted December 27, 2005 (edited) Hi, Why is SQL not intuiitive? What is Wrong with this to alter 1 cell in table "test", row numbered 99 on "a" , in column "c"? BEGIN TRANSACTION; INSERT INTO test ( c ) WHERE a= 99 VALUES('8'); COMMIT TRANSACTION;Randall EDIT; never mind, I got it in the end; hard to follow the syntax! UPDATE test SET c= 8 WHERE a= 99;Now my ListView will Edit a cell if not the index row; first CNTRL - click the column header, then double-click the listview row; Best, Randall [PS at present only on my created files or anyway if column 1 of Listview contains ROWID; I'll get there..] Edited December 27, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
randallc Posted December 27, 2005 Share Posted December 27, 2005 (edited) This one is closer, not perfect; only edit external tables if you know its OK! [imported csvs not all editing yet either] Randall Edited December 28, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
randallc Posted December 28, 2005 Share Posted December 28, 2005 (edited) This time....! Edited December 28, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
randallc Posted December 28, 2005 Share Posted December 28, 2005 (edited) Hi, i have added a query button for query on imported csv files, in table named "test", result to table "query" randall Edited December 28, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
piccaso Posted March 13, 2006 Share Posted March 13, 2006 Updated bundled SQLite Version to 3.3.4SQLite.zipnext week i'll start working on doc's again CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
JSThePatriot Posted May 16, 2006 Share Posted May 16, 2006 Trying to use SQLite, and I keep getting an unknown function on... _GUICtrlTreeViewItemGetTree() I have checked the source, and even upadated to the newest beta, but still to no avail. The Function is in the proper include file, and the include file is included. I even tried to run the script from the help file and it wouldnt work. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
randallc Posted May 16, 2006 Share Posted May 16, 2006 Hi, Maybe it has changed to "_GUICtrlTreeViewGetTree"? Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
ptrex Posted May 17, 2006 Author Share Posted May 17, 2006 @JSThePatriot If you show us some more code, maybe we better understand where the problem is. Regards Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
jpm Posted May 17, 2006 Share Posted May 17, 2006 Updated bundled SQLite Version to 3.3.4SQLite.zipnext week i'll start working on doc's againsmall correction for allowing debugging under autoIt debug version. Some time I need to use it to debug.and small typo.keep going your good work Link to comment Share on other sites More sharing options...
ptrex Posted May 17, 2006 Author Share Posted May 17, 2006 @Jpm Thanks for the update. Does this mean you plan to have the SQLite included as a standard UDF, like IE.au3. Including documentation etc ? Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
jpm Posted May 17, 2006 Share Posted May 17, 2006 @JpmThanks for the update.Does this mean you plan to have the SQLite included as a standard UDF, like IE.au3. Including documentation etc ?I will like just do the submission to JdeB who is responsible for UDF integration Link to comment Share on other sites More sharing options...
ptrex Posted May 17, 2006 Author Share Posted May 17, 2006 @Jpm Haleluja !! I am realy honered. Nevertheless all credits go to @piccaso and yourselve I am willing to help in making a CHM helpfile, if that can help getting it past the "deliberation jury" But if so I need some templates that are needed to create the CHM Helpfile in MS HTML HELP Workshop. (You know like Big_Daddy, did for IE.au3) Let me know or PM me about this. Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
jpm Posted May 17, 2006 Share Posted May 17, 2006 @JpmHaleluja !!I am realy honered. Nevertheless all credits go to @piccaso and yourselve I am willing to help in making a CHM helpfile, if that can help getting it past the "deliberation jury" But if so I need some templates that are needed to create the CHM Helpfile in MS HTML HELP Workshop.(You know like Big_Daddy, did for IE.au3)Let me know or PM me about this.What has been done by picasso is good just the examples must be name the same func.txt and func.au3. There is an automated process which make the .htm and the .chmIt could be good to have a page giving the highlight of how to use all this functions, kind of starter/tutorial.to day not really in place in the UDF .chm but I am sure JdeB will find a way. Link to comment Share on other sites More sharing options...
Recommended Posts