Std.Db.Query
49 public declarations
- absent
Std.Db.Driver.ValueA value that is absent.
- also
&Std.Db.Query.Statement -> Str -> Str -> Std.Db.Driver.Value -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A further condition that must also hold.
- andOn
&Std.Db.Query.Statement -> &Std.Db.Schema.Column[T] -> Std.Db.Schema.Comparison -> &T -> Std.Db.Query.Statement where T: BindableA further condition that must also hold.
- counting
Str -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]How many rows a table holds.
- deleteFrom
Str -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]Rows removed from a table.
- either
&Std.Db.Query.Statement -> Str -> Str -> Std.Db.Driver.Value -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A further condition where either may hold.
- empty
Std.Db.Query.StatementA statement with nothing in it.
- except
&Std.Db.Query.Statement -> &Std.Db.Query.Statement -> Std.Db.Query.StatementThe rows in the first and not the second.
- explain
&Std.Db.Query.QueryError -> StrWhat a refusal says.
- flag
Bool -> Std.Db.Driver.ValueA value that is true or false.
- from
Str -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]Everything from a table.
- fromTable
&Std.Db.Schema.Column[T] -> Std.Db.Query.StatementEverything from the table a column belongs to.
- insert
Str -> &Array[Str] -> &Array[Std.Db.Driver.Value] -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A row added to a table, from the columns and the values that fill them.
- intersect
&Std.Db.Query.Statement -> &Std.Db.Query.Statement -> Std.Db.Query.StatementThe rows in both.
- limit
&Std.Db.Query.Statement -> Int -> Std.Db.Query.StatementAt most this many rows.
- matching
&Std.Db.Query.Statement -> Str -> Str -> Std.Db.Driver.Value -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A condition on a column, with the value travelling beside the statement.
- matchingMissing
&Std.Db.Query.Statement -> Str -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A condition that a column holds nothing.
- matchingOneOf
&Std.Db.Query.Statement -> Str -> &Array[Std.Db.Driver.Value] -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A condition that a column is one of several values.
- maybeText
Option[Str] -> Std.Db.Driver.ValueText, or its absence.
- missingOn
&Std.Db.Query.Statement -> &Std.Db.Schema.Column[T] -> Std.Db.Query.StatementA condition that a column holds nothing.
- name
Str -> Result[Str, Std.Db.Query.QueryError]A name, admitted only when it is one.
- offset
&Std.Db.Query.Statement -> Int -> Std.Db.Query.StatementStarting after this many rows.
- on
&Std.Db.Query.Statement -> &Std.Db.Schema.Column[T] -> Std.Db.Schema.Comparison -> &T -> Std.Db.Query.Statement where T: BindableA condition on a column, with the column and the comparison both values.
- oneOf
Str -> &Array[Str] -> Result[Str, Std.Db.Query.QueryError]A name chosen from a list the program wrote.
- operator
Str -> Result[Str, Std.Db.Query.QueryError]An operator, admitted only when it is one.
- orderBy
&Std.Db.Query.Statement -> Str -> Bool -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]The order rows come back in.
- orderOn
&Std.Db.Query.Statement -> &Std.Db.Schema.Column[T] -> Bool -> Std.Db.Query.StatementThe order rows come back in, by a column the compiler knows.
- orOn
&Std.Db.Query.Statement -> &Std.Db.Schema.Column[T] -> Std.Db.Schema.Comparison -> &T -> Std.Db.Query.Statement where T: BindableA further condition where either may hold.
- Part
A statement, and the values that travel beside it.
- qualifiedName
Str -> Result[Str, Std.Db.Query.QueryError]A name that may carry the table it belongs to.
- QueryError
Why a statement would not be built.
- raw
Str -> &Array[Std.Db.Driver.Value] -> Std.Db.Query.StatementA statement written out in full, with its values beside it.
- returning
&Std.Db.Query.Statement -> &Array[Str] -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A statement that answers with the rows it changed.
- selecting
&Array[Str] -> Str -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]Named columns from a table.
- Statement
The parts are held rather than one text, because a statement is built a
- Statement
Query.QueryError -> Std.Db.Store.StoreErrorThe parts are held rather than one text, because a statement is built a
- text
Str -> Std.Db.Query.StatementA statement from text the program wrote, carrying no values.
- textIn
&Std.Db.Query.Statement -> &Std.Db.Driver.Placeholders -> StrThe same statement, spelled the way one backend writes a placeholder.
- textOf
&Std.Db.Query.Statement -> StrThe text a statement holds, which a program may read before running it.
- textValue
Str -> Std.Db.Driver.ValueA value that is text.
- textValuesOf
&Std.Db.Query.Statement -> Array[Option[Str]]The same values as the text a wire carries.
- then
&Std.Db.Query.Statement -> &Std.Db.Query.Statement -> Std.Db.Query.StatementTwo statements one after the other, with the second's placeholders
- union
&Std.Db.Query.Statement -> &Std.Db.Query.Statement -> Bool -> Std.Db.Query.StatementTwo results together, with the second's values following the first's.
- update
Str -> &Array[Str] -> &Array[Std.Db.Driver.Value] -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]Columns of a table set to new values.
- valueCount
&Std.Db.Query.Statement -> IntHow many values a statement carries.
- valuesOf
&Std.Db.Query.Statement -> Array[Std.Db.Driver.Value]The values that travel beside it.
- whole
Int -> Std.Db.Driver.ValueA value that is a whole number, so a numeric comparison is a numeric one.
- withQuery
Str -> &Std.Db.Query.Statement -> &Std.Db.Query.Statement -> Result[Std.Db.Query.Statement, Std.Db.Query.QueryError]A named result the rest of a statement reads from.
- withValue
&Std.Db.Query.Statement -> Str -> Std.Db.Driver.Value -> Std.Db.Query.StatementA statement with one more piece of text and one more value.
