Ed_Maximized Posted March 11, 2007 Posted March 11, 2007 I made this program because I needed it for another greater project in where I had to create and to modify sqlite's databases. The script opens a window in where appear enumerated the tables contained in the database and other windows in where the data of each one of the tables is showed. To do: (1)Execution of SQL commands (2)Queries (3)Add/Remove/Modify data Help Needed: -I need to know how to extract the table structure (data types) in order to perform to do number 3. expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.2.0 Author: Edmundo Fasano "Ed_Maximized" Script Function: SQLite Browser #ce ---------------------------------------------------------------------------- ; Script Start #include <sqlite.au3> #include <GUIConstants.au3> Dim $sOut,$Form[10],$ListView[10];,$Tables[10] $DBName=FileOpenDialog("Seleccione una base de datos",@ScriptDir,"todas (*.*)") $sIn = ".headers on"& @CRLF &"select tbl_name from sqlite_master;"&@CRLF _SQLite_SQLiteExe($DBName,$sIn,$sOut,@ScriptDir&"\sqlite3.exe") $Tables = StringSplit($sOut, @CRLF, 1) $Form[0] = GUICreate("Database: "&_GetFileName($DBName), 300, 100, 100, 100) $ListView[0] = GUICtrlCreateListView($Tables[1], 1, 1, 298, 98) GUISetState(@SW_SHOW) For $i=2 To $Tables[0] GUICtrlCreateListViewItem($Tables[$i],$ListView[0]) Next For $ii=2 To $Tables[0]-1 $sIn = ".headers on"& @CRLF &"select * from "&$Tables[$ii]&" sqlite_master;"&@CRLF _SQLite_SQLiteExe($DBName,$sIn,$sOut,@ScriptDir&"\sqlite3.exe") $array = StringSplit($sOut, @CRLF, 1) $Form[$ii] = GUICreate("Table: "&$Tables[$ii], 640, 400, 100+50*($ii-1), 100+50*($ii-1)) $ListView[$ii] = GUICtrlCreateListView($array[1], 1, 1, 638, 398) GUISetState(@SW_SHOW) For $i=2 To $array[0] GUICtrlCreateListViewItem($array[$i],$ListView[$ii]) Next Next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Exit Func _GetFileName($ipath) Dim $drive,$path,$filename,$ext _PathSplit($ipath,$drive,$path,$filename,$ext) $dir=$drive&$path Return $filename&$ext EndFunc If you need a table to test... Here is one... documentos.zip Ed ShapedGUI Creator : Shaped gui the easy way!!!Txt2au3 : the easy way to include text files into your program without fileinstall_GUICreateWithTiledBackground : Put a GIF in the background of your formsSQLite Database BrowserAnimated GIF UDF : Put animations in your GUI's
gseller Posted March 18, 2007 Posted March 18, 2007 Hey.. Nice start. I can't wait to see the finished code. I have to work with mssql at work and would love to use autoit to read/write and add/edit.. Jim
mikeytown2 Posted June 26, 2007 Posted June 26, 2007 in case anyone is looking for a solution, any solution like i was... this is an awesome GUI program for SQLiteSQLite Database Browserhttp://sourceforge.net/project/showfiles.php?group_id=87946It helped me set some stuff up before i dump it into autoit (like run SQL commands and import data) Email: POP3 & SMTP using SSL/TLS (OpenSSL)Email: IMAPEmail: Base64 & SMTP login & Send email direct to MX Server (thanks blindwig)Win: Hook Registry ChangesWin: Read/Write to Alternate Data Streams (ini example)Utility: GPS Distance Calculations, Vincenty and Haversine formulas; angles and elevationUtility: Dell Laser Printer (3000-5100) - Print LoggerUtility: Reset Router when Wireless Link FailsUtility: ImageMagick Batch jpg ProcessorVideo HCenc Batch FrontendVideo: *DEAD* YouTube Video Encoder (avs/avi to flv)Software On CD's I Like<<back|track3 Ultimate Boot CD for Windows SpinRite Ubuntu ophcrack
BartvanBeek Posted January 25, 2011 Posted January 25, 2011 in case anyone is looking for a solution, any solution like i was... this is an awesome GUI program for SQLiteSQLite Database Browserhttp://sourceforge.net/project/showfiles.php?group_id=87946It helped me set some stuff up before i dump it into autoit (like run SQL commands and import data)GOOD TIP!!
ldub Posted January 27, 2011 Posted January 27, 2011 GOOD TIP!!Make your choice here : http://www.sqlite.org/cvstrac/wiki?p=ManagementToolsI do like SQLite2009 Pro Enterprise Manager (freeware) : http://osenxpsuite.net/?xp=3&uid=managementtoolsand this extension for firefox : http://code.google.com/p/sqlite-manager/Regards,
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