Lurker News
I 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

Show all comments

Showing thread 4 of 61

earthnail4 replies#
It would be amazing if it could display UUIDs. SQlite doesn't support them natively, but many people store them as binary blobs.

Jetbrains products realize that these binary values are UUIDs and let me edit them easily.

__bb2 replies#
Thanks, I'll make a note of that. It's not a behaviour I've seen before.
_mlbt1 reply#
I see that this software is available for direct sale, the Mac App Store, and through Set App. What is your revenue breakdown from each if you don’t mind sharing?
__bb5 replies#
It's a bit too soon to tell reliably, since I've shipped v3 as a new app and it hasn't settled down yet. For v2 it used to be 60% App Store and the remainder direct/Setapp. So far for v3 it is approximately 60% direct, 25% App Store and 15% Setapp.

This is a bit of a shift, but the numbers aren't really stable yet so it's hard to tell if it'll stay there.

Continue this thread — 5 replies

earthnail#
I work a lot with syncing code for mobile apps, and use sqlite for local dbs on the app, which I guess is fairly standard. UUIDs make sync protocols much easier to write.
supportengineer#
Sometimes a binary blob contains perfectly printable characters.

A binary blob of 7-bit-clean ASCII still fits within a binary blob.

klabb3#
I didnt know there are dozens of us! When I saw the lack of native support i decided to use binary blobs. I mean, why waste many bytes if few bytes do trick? In the SQLite studio app im using its garbled and annoying to browse.

Too bad this is mac only. I mean, im a mac user (among other things) but i don't want to depend on platform specific tooling.

da_chicken1 reply#
See, I would be terrified of doing that because different RDBMSs and languages store and sort UUIDs differently. A UUID is not just a number. It's a structured data format.

Both MariaDB and SQL Server have dedicated data types for UUIDs, and they sort in an unexpected order if you're unfamiliar with the structure of a UUID or the endianness of certain portions of it. Oracle assumes it's going to be binary, but the generating function SYS_GUID() has some endianness issues you can run into. Meanwhile, PostgreSQL kist sorts them like a string!
Similarly, if you're using .Net to generate a native GUID type and passing that through your RDBMS provider, it may arrive and be stored differently due to that endianness problem.
Expecting that every SQLite database is going to be storing UUIDs in an identical manner seems insane to me.

throwaway20371 reply#
Is it incorrect to simply sort the alphanumeric version of UUIDs? I am unsure if UUIDs have special sorting rules like Unicode.
da_chicken1 reply#
It's not really about that.

It's the fact that, as the Base author, you don't really know how a given application might present a 16-byte binary version of a UUID to the database. If you don't know that, how can you reverse it to display the correct string representation? There are complications with byte groups potentially being in different places, and even the potential of mixed byte ordering.
How can Base make a 16-byte binary format that display both a GUID stored from a .Net application from person A, and also a UUID from a Python application from person B, and have the string representation be accurate in both cases? I don't think you can.

throwaway2037#
Off the top of my head, I can think of three different ways to store it in a single field: Big endian binary, little endian binary, or text. (Serious questions: Are there reasonable alternatives? Are people actually storing single UUID values across multiple DB columns?) That seems pretty simple for Base to add a display option... or add some "if-then" smell tests (shortly followed by an AI/ML cloud add-on subscription!).