This might interest those who want a lightweight sqlite gui that's based on a Windows look and feel. Maybe a Windows 95 look?
Github link: https://github.com/little-brother/sqlite-gui
Very nice and no dependencies and you can replace the sqlite3.dll
Close but not ready for primetime. No blob is nogo. And I crashed it with simple export to csv. A smaller export inserted [CR]'s at end of every row?
(4.1) By Keith Medcalf (kmedcalf) on 2020-09-16 17:12:00 edited from 4.0 in reply to 1 [link] [source]
The schema for the prefs.sqlite can also be simplified. PRIMARY KEY is an alternate spelling for UNIQUE, so you only need one of them, not both.
Plus, something which is unique/primary key is already indexed so no need to create a duplicate index explicitly.
These just waste space but should no be harmful, at least not in up-to-date versions of SQLite3.
The functionality and interface is reminiscent of the old MS SQL Server Admin/Query Tool thingimy back before they made it useless (and slow as molasses running up hill in an Edmonton -40 degree Winter) by re-writing it in dot SNOT and calling it "SQL Manglement Studio".
I found a couple of bugs already and there are some UI annoyances, but it does seems to work, if you are into GUIs.
(5) By little-brother on 2020-09-16 17:51:13 in reply to 1 [link] [source]
Hi, everyone! @anonymous, thanks for share the link :) I'm a developer of this tools. > I crashed it with simple export to csv. @skywalk, could you describe what kind of data in the table or send it as .sqlite/csv or smth else to email@example.com? > A smaller export inserted [CR]'s at end of every row? It's a Windows End-of-Line-style "\r\n". The Unix format is "\n". Perhaps I should set Unix-"\n" as default. > I found a couple of bugs already and there are some UI annoyances, but it does seems to work, if you are into GUIs. @Keith Medcalf, could you provide more information? I'll try to fix it as soon as finish "the next-one feature". I didn't dedicate too much time to data definition wizards because I use to work with data, not ddl.
I am fine with the gui and its speed and lack of bloat. The [CR]'s were in addition to [CR+LF]'s. Thus, 1 empty line in the exported csv. I will get you a db when I have more time. You really should add support for blobs. All my databases have at least 1 blob column.
(8.1) By little-brother on 2020-09-16 18:42:32 edited from 8.0 in reply to 6 [link] [source]
> its speed Honestly, SQLiteStudio is much faster (about 4 times) on long time queries. I got to figure out how it can be possible when I'll be out of ideas/bug fixing. I have never used blob prefering them to files. Blobs take a lot of work: HEX-editor, image viewer and "save as file"-option. So it will not appear shortly. > Thus, 1 empty line in the exported csv. Thanks. I added it to my bug list.
thanks for creating the tool.
A minor bug I've found is that if you right-click a table before selecting it, the highlight jumps up to the previous highlighted table.
- Open the tool with bookstore DB
- Click books table
- Right-click orders
- Notice the highlight on orders quickly changes to books. If you query orders, it'll actually query books.
It would be nice to rename the editor tabs.
(9) By little-brother on 2020-09-16 18:41:50 in reply to 7 [link] [source]
Thanks for details. I'll fix it (or at least try :D) in a next release. > It would be nice to rename the editor tabs. It is planned. But there are many things have higher priority (one of them is multi threading).
There doesn't seem to be a way to close an editor tab. Do you plan on adding that in?
Also, when I close a database, I would expect the editor window to close. Perhaps there can be a prompt to the user asking if they want to save their query.
(11.1) By little-brother on 2020-09-17 21:01:26 edited from 11.0 in reply to 10 [link] [source]
> way to close an editor tab. One tab should be open. Two tabs have crosses to close. One tab doesn't. > Perhaps there can be a prompt to the user asking if they want to save their query. You could turn off autosave-and-restore Database > Settings > "Restore editor's text on start up" Ask each time on exit is annoying.
(12) By little-brother on 2020-09-23 12:15:58 in reply to 1 [link] [source]
1.2.2 released + Basic BLOB support + Editor tabs renaming + Startup script * Improve tree navigation * Improve code completition * Fix CSV export bug * Fix bugs I put aside "the next big-one feature" because I decided to make it as standalone app. So I gathered the topic remarks and implemented them. Download link - https://github.com/little-brother/sqlite-gui/releases/download/1.2.2/sqlite-gui.1.2.2.zip
Ok, Latest exe crashes on [Right-Mouse-Clk]-Export to csv of recent query results.
(14) By little-brother on 2020-09-23 14:06:19 in reply to 13 [link] [source]
Could you provide more details e.g. data (or at least table structure) and the query text to reproduce error? Perhaps it's a BLOB trouble.
(15) By little-brother on 2020-09-26 14:29:57 in reply to 1 [link] [source]
1.2.3 released + Add delete and refresh buttons in Edit data dialog * (Critical) Fix delete bug in Edit data dialog * Fix csv export bugs Download link - https://github.com/little-brother/sqlite-gui/releases/download/1.2.3/sqlite-gui.1.2.3.zip I found a blunder when user deletes a row in Edit data dialog :( Also I tried to fix csv export. I didn't receive any information from @skywalk, so I couldn't check it.
csv export is no longer double spaced for Windows, but why the semicolon to separate the records? Is that more common to use than a comma?
1;Steelheart;Brandon Sanderson;978-0385743563;5.0;3 2;All Our Yesterdays;Cristin Terrill;978-1423176374;7.3;10 3;Life After Life;Jill McCorkle;978-1616203221;2.82;4 4;Life After Life;Kate Atkinson;978-0316176491;8.1;5 5;Foundation;Isaac Asimov;978-0553293357;12.7;8 6;Dracula;Bram Stoker;978-0486411095;6.6;0
I like when data is queried with a right-click on a table, it opens in a new results tab, but find it not intuitive the query is placed in the same editor tab. Would you consider having the new query open a new editor tab with the new query?
(17) By little-brother on 2020-09-26 16:32:40 in reply to 16 [link] [source]
> but why the semicolon to separate the records? App uses the delimeter applying on last CSV export. By default it's ';'. I'll change it to comma. > the new query open a new editor tab with the new query Ok. Coming in the next update as option.
App uses the delimeter applying on last CSV export.
Ah, I do see the options to use other column delimiters, but I agree that the default of a comma is a better idea.
Couple small things...
I don't know if it would ever be done, but you can't create an empty table. There's an error message when creating an empty table without any records:
--------------------------- Error --------------------------- near ")": syntax error --------------------------- OK ---------------------------
Is there a way to save database changes, or does that happen automatically? When creating a new table in your bookstore example DB, it looks like it automatically saved it, without any kind of user ack. I suppose this is operating like the sqlite cli...there's no prompt to save before exiting. For a gui, though, a save db changes message might be expected.
The "save" icon (for save query) looks permanently grayed out, but it actually saves queries. Is that by default?
Is that by default?
I meant to ask if that's by DESIGN. As is, is it by design to have the icon look grayed out/disabled.
(20) By little-brother on 2020-09-27 12:38:31 in reply to 18 [source]
> you can't create an empty table Ok, I'll add check to prevent it. > Is there a way to save database changes, or does that happen automatically? It does automatically on each value changing. You could start transaction explicitly by execute "begin transaction" before data changing. And after commit or rollback all changes. > The "save" icon (for save query) looks permanently grayed out, but it actually saves queries. I'll recolor icons to avoid this misunderstanding. Thanks for remarks!
|As a long-time Perl programmer having to deal with various 'source' files for DB creation, I have discovered that using a pipe symbol '||' as a field separator is less head-ache. It is vary rarely used in common text, thus not likely to be interpreted as anything else. It's easy to split on. So if you have control over the source file, consider using the pipe symbol as a field separator. My 2¢.|
Ironically, it's your pipe character that's causing a problem with your post's formatting: click Edit, then click the "Markup Style" link to learn more about Markdown formatting, which will explain why it's being formatted thus.
Solution: put the pipe in backticks.
Heh, what a newbie. Thanks eh!
What should have appeared is the pipe symbol
(21.1) By little-brother on 2020-11-17 11:58:28 edited from 21.0 in reply to 1 [link] [source]
- Show referenced data by Alt + Click
- Workflow manager (beta)
- Query the table data in a new tab
- F5 to refresh tree
- REDO in Editor by Ctrl + Shift + Z
- Decode and concat functions
- Back up prefs.sqlite
- Fix sorting in data grids
- Fix csv import
- Recompile sqlite3.dll
- Change icu extension to third party
- Minor changes
This release introduced a new ETL tool to execute sequences of parameterized queries and import/export data via ODBC to SQLite database.
It's a simplifier version of SSIS and Apache NiFi :D Check Wiki to learn more.
(22.1) By little-brother on 2020-11-17 11:58:42 edited from 22.0 in reply to 1 [link] [source]
- ODBC import
- Database comparison
- Database search
- Database statistics
- Fix bugs
(23) By little-brother on 2020-12-27 08:32:12 in reply to 1 [link] [source]
This download is blocked by Chrome.
(25.1) By little-brother on 2020-12-27 17:18:38 edited from 25.0 in reply to 24 [link] [source]
Thanks a lot! I don't know about this issue because I primarily use Firefox.
This is due to the fact that some antiviruses do not like small files :/
But the fact that this is the reason for the blockage is nonsense.
I recompiled all dll-s with -O option (optimize for speed) and updated releases files to reduce a Chrome paranoia.
Expand Technical Information for ways to circumvent.
(27) By little-brother on 2020-12-30 07:28:37 in reply to 26 [link] [source]
If it helps, this is the reason logged for detecting a threat:
Detected: PUA:Win32/InstallCore Status: Failed This threat or app might not be completely remediated. This program has potentially unwanted behaviour.
On Windows 10 using Chrome or Edge to download the zip from the link given.
(29) By little-brother on 2020-12-30 11:03:52 in reply to 28 [link] [source]
Thanks for your report. I'll try to fix it.
P.S. I added it as a new issue.