This commit is contained in:
Brandon Rozek 2025-01-03 18:43:06 -05:00
parent 1880b3ff56
commit 322b79027e
No known key found for this signature in database
GPG key ID: DFB0E78F805F4567

View file

@ -20,7 +20,7 @@ The SQL to create this table is[^2]
```sql
CREATE TABLE config(
name TEXT PRIMARY KEY,
name TEXT NOT NULL,
value TEXT
);
```
@ -123,5 +123,5 @@ $ ./sqlite3_getkv.sh test.db a
```
[^1]: Somehow my idea of easier, simpler, and more maintainable is writing bash scripts.
[^2]: Thanks Justin for helping me simplify it from `NOT NULL UNIQUE` to `PRIMARY KEY`.
[^2]: Unfortantely, we can't only use the `PRIMARY KEY` qualifier for the name field as sqlite has a [historical quirk](https://www.sqlite.org/quirks.html) which allows primary keys to be null.