Db, direct interface, errors, and migrations

Adds a migration for an initial schema. Adds sqlx-cli to the flake
so that I use those migrations easily.

adds an UNTESTED "direct" interface, which should make writing ingestors
easier, and be very easy for spoor lexicons. It will probably also be
easy for other lexicons if they can fit into the Activity -> Session ->
Content interface.

Adds errors because I needed errors.

Since this is a library, and as you can see there are no tests, that
means that everything is *untested* which is fine because I want a MVP
not a stable app. For now.
This commit is contained in:
Julia Lange 2025-06-11 17:29:59 -07:00
parent c1b5b774d5
commit 8288620f2e
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
13 changed files with 243 additions and 119 deletions

1
Cargo.lock generated
View file

@ -569,6 +569,7 @@ dependencies = [
"async-trait",
"atproto",
"sqlx",
"thiserror 2.0.12",
"tokio",
]