Db, first commit of work

This also touches atproto/src/lib.rs which may be a problem for the
rebase~

Adds migrations and all the other stuff.
This commit is contained in:
Julia Lange 2025-06-11 17:29:59 -07:00
parent 3eb6aab10f
commit aadea9757b
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
12 changed files with 270 additions and 82 deletions

View file

@ -1,17 +1,37 @@
use lazy_regex::regex_captures;
use core::str::FromStr;
use std::fmt::{
Display, Formatter, Result as FmtResult
};
pub use atrium_api::types::{
Collection,
string::{
AtIdentifier as Authority,
Datetime,
Did,
Nsid,
RecordKey,
AtIdentifier as Authority,
Tid,
Handle,
}
};
pub mod lexicons;
pub struct Cid(String);
impl Display for Cid {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
write!(f, "{}", self.0)
}
}
pub struct StrongRef<T> {
pub content: T,
pub cid: Cid,
}
pub struct Uri {
whole: String,
// These fields could be useful in the future,