unmbt/ciallo-orm/ast does not have a README file
pub struct Col[Table, Val] {
table : String
alias_ : String?
name : String
nullable : Bool
// private fields
}pub(all) enum Expr {
Raw(sql~ : String, params~ : Array[SqlValue])
Column(table~ : String, name~ : String)
Param(SqlValue)
Binary(left~ : Expr, op~ : BinaryOp, right~ : Expr)
Unary(op~ : UnaryOp, expr~ : Expr)
InList(expr~ : Expr, values~ : Array[SqlValue], negated~ : Bool)
Between(expr~ : Expr, low~ : SqlValue, high~ : SqlValue)
And(Array[Expr])
Or(Array[Expr])
Not(Expr)
Agg(func~ : AggFunc, expr~ : Expr?)
} derive(Eq, Debug)pub(all) struct OnConflict {
target_columns : Array[String]
action : ConflictAction
} derive(Eq, Debug)pub(all) struct SelectAst {
columns : Array[SelectColumn]
from_table : String
from_alias : String?
soft_delete_col : String?
tenant_col : String?
joins : Array[JoinClause]
where_clause : Expr?
group_by : Array[Expr]
having : Expr?
order_by : Array[OrderBy]
limit : Int?
offset : Int?
distinct : Bool
} derive(Eq, Debug)fn SelectAst::SelectAst(from_table~ : String, from_alias? : String, columns? : Array[SelectColumn], soft_delete_col? : String, tenant_col? : String, joins? : Array[JoinClause], where_clause? : Expr, group_by? : Array[Expr], having? : Expr, order_by? : Array[OrderBy], limit? : Int, offset? : Int, distinct? : Bool) -> SelectAstpub struct TableRef[Table] {
name : String
alias_ : String?
soft_delete_col : String?
tenant_col : String?
version_col : String?
// private fields
}Install
Download zipZero-reflection type-safe SQL AST, Postgres/SQLite/D1 dialect compiler, closure SAVEPOINT transactions, and query executor for unmbt/ciallo