Skip to content
#[derive(Clone, Debug, DeriveEntityModel)]
#[turso(table_name = "user")]
pub struct Model {
    #[turso(primary_key)]
    pub id: i32,
    #[turso(unique)]
    pub email: String,
}

let found = user::Entity::find()
    .filter(user::Column::Email.contains("example"))
    .one(&db)
    .await?;

Your entities,
Turso underneath.

The documentation of turso-orm: a guide from the first entity to relations, transactions, migrations and web services, with examples that CI compiles and runs.

Independent and community-maintained. Not affiliated with or endorsed by Turso.