Atproto Types Overhaul and DB Interface #3

Merged
Julia merged 4 commits from db-ingestion-interface into main 2025-06-17 15:49:17 -07:00

4 commits

Author SHA1 Message Date
8288620f2e
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.
2025-06-17 15:41:27 -07:00
c1b5b774d5
Atproto, add sqlx support
Moves sqlx to workspace so this touches DB and workspace
2025-06-17 15:35:22 -07:00
8195ded307
Atproto, types overhaul and error handling
Breaks off from Atrium-rs's types because they are implemented
inconsistently, which makes them harder to use.

This was done with reference to the atproto documentation but
specifically not the atrium-rs codebase so I wouldn't have to think
about licenses.

This adds the types and error module in atproto. It also touches
Cargo.toml for some new dependencies and some shared dependencies.

some things to keep in mind:
- There is no CID parsing
- None of this is tested, nor are there any tests written. We're playing
  fast and loose baby~
2025-06-17 15:26:57 -07:00
3eb6aab10f
Cargo, moving async-trait and tokio (DB, Ingestor)
Move async-trait from ingestor to workspace so DB can share.

Update the reference to tokio in DB from version to workspace
2025-06-17 15:12:10 -07:00