Show HN: Base, an SQLite database editor for macOS (opens in a new tab)menial.co.uk
693 pointsI recently released v3 of Base, my SQLite editor for macOS.
The goal of this app is to provide a comfortable native GUI for SQLite, without it turning into a massive IDE-style app.
The coolest features are
- That it can handle full altering of tables, which is quite finicky to do manually with SQLite.
- It has a more detailed display of column constraints than most editors. Each constraint is shown as an icon if active, with full details available on clicking the icon.
This update also adds support for attaching databases, which is a bit fiddly with macOS sandboxing.
I'd love to hear any feedback or answer any questions.
Comments (181) 61 threads
Earlier commentsI'm trying to understand who your target audience is? Normally, I think of SQLite as something that only a programmer would use. (And thus these kind of statements happen within an application.)
What kind of use cases are you handling where someone is manually creating / changing a schema?
> Import data from CSV and SQL dump files. Export your results to SQL, delimited text, JSON, and Excel formats.
IE, who's using SQLite in this way, and what are they using it for?
I have regularly used sqlitebrowser. You can even get create table statements corresponding to tables you have drafted with it, and you can copy-paste these statements in your code. Or build and test a sql statement incrementally, and paste it in your code when you are happy.
Or even to plain browse data, explore database from other tools, etc. There are a lot of occasions where such a tool can be convenient.
As to importing/exporting data (csv, etc), You can't exactly run queries against a CSV generally (I mean you can with JET/ODBC, but still)... it's a chore.
To another point, I often feel that sqlite is a great backup format for data, it's portable, you can query directly, etc. I kind of wished that Azure Data Studio (now discontinued) had directly supported loading CSV/TXT etc into an in-memory or temp db for queries and portability similar to mentioned between various data sources (sqlite, mssql, pgsql, etc).
I’ve got quite a few scientists using it for data analysis, a whole bunch of people importing sales data for querying.
A good number of folks never write any SQL and just use the GUI to sort/filter data.
I’ve also heard from people who use Base to design a schema and then export the SQL into their codebase.
EDIT: I should add that Base does nothing that that the command line tool can't. But it does offer more convenience, particularly for those who might be less comfortable writing SQL.
Additionally, while I know my way around and even enjoy the command-line, on occasion I bump into some app’s SQLite database that I want to explore. I can see myself using a GUI for those instances to help me find the data I’m looking for faster.
> Create and modify tables with ease using Base's visual table editor. No need to write complex CREATE or ALTER statements.
Even if you need the actual instantiated schema to pass to SQLite in your source code, that's easy to obtain after-the-fact if this app doesn't output it directly, using `.schema` from the SQLite CLI.
Who made that rule? Most database tools I have used do this. I can go into SQLite's command interface and do it. It's not limited to the application.
Not all of us want to write code for everything. Sometimes when I'm developing an app or an idea, the last thing I want to do is keep messing with cruft I don't have to. It's a waste of time to write yet another alter/create/etc script. I just click and change it. That's it, and I move on. I don't care until my design is done to export/create the creation/alter scripts, if I even need them, because I can ship a fully set up DB file with the app, I don't actually have to have scripts for that stuff. Sure, later I may need to on an update, but when rapidly prototyping I'd rather just have the quickest way to deal with it. Else, the argument becomes "Why not just use the SQLite terminal interface instead of a graphical tool?" or "Why would you create or rename a directory using Finder rather than a shell script to do it?"
> IE, who's using SQLite in this way, and what are they using it for?
Anyone that wants to do such things? I just recently wrote an app that runs in a browser using only javascript, but in the end I wanted the data and it exports it to JSON so I can load it into another app. I haven't gotten around to integrating these (and I probably won't) as the app is a pure browser application, but the other is a tool for creating TTML2 documents, and I need that data. So, I can easily import that. It's not a commercial thing, it's my own. So, I don't want to merge the two. I don't mind the step. This sort of thing is good. What is wrong with the ability to do so? PostgreSQL can do it. You don't believe it could be useful to export your data so that someone that isn't using SQLite can view it? Dumping a table for viewing in Excel is so common that I don't really understand why you're asking.
There are literally billions of devices using SQLite. And within those devices, countless applications are using the thing. Do you believe it has a limited set of use cases? Heck no.
Your questions seem like bait and I bit.
It would be so much better if he could store these things in SQL - for non developers, they often use Excel, when a SQL DB is the correct solution, just because they can't figure out SQL at all. A visual editor/manager is perfect for them - create a table with columns, enter data, later integrate with other tools that can pull it out.
Of course, there’s a balance to be struck to support users, but macOS update uptake is usually pretty fast.
Since Tahoe is likely to be released in the next month or so, I judged it better to start with Sequoia and keep it supported rather than start with Sonoma and risk needing to drop it shortly after launch.
Now if you did that and used it on your 3 versions out of date macOS, then an update came that only worked on current-2, you'd be pissed.
Mostly only software with subscriptions can afford to keep supporting multiple versions.
I like these kinds of things though. Minimal purpose built tools.
All comments shown.
Couldn't load more comments. Check your connection and try again.