galchemy/ast/query

Types

pub type DeleteQuery {
  DeleteQuery(
    table: schema.Table,
    where_: option.Option(expression.Predicate),
    returning: List(expression.SelectItem),
  )
}

Constructors

pub type InsertQuery {
  InsertQuery(
    table: schema.Table,
    rows: List(List(#(schema.ColumnMeta, expression.Expression))),
    returning: List(expression.SelectItem),
  )
}

Constructors

pub type Query {
  Select(expression.SelectQuery)
  Insert(InsertQuery)
  Update(UpdateQuery)
  Delete(DeleteQuery)
}

Constructors

pub type UpdateQuery {
  UpdateQuery(
    table: schema.Table,
    assignments: List(#(schema.ColumnMeta, expression.Expression)),
    where_: option.Option(expression.Predicate),
    returning: List(expression.SelectItem),
  )
}

Constructors

Search Document