Import std.db.database
Statement
class
Public Class Statement
A statement prepared once, to run many times, its parameters bound to new values each time: what Database.Prepare makes. Its parameters are ?, ?NNN, :name, @name, and $name, numbered from 1 in order, as SQLite numbers them, and keep the values they're bound to until they're bound again, or Clear sets them to NULL. Closing its Database finalizes it, and using it after that panics, but for Parameters.
-
How many parameters it takes: the largest number one has.
-
Binds the parameter at
index, from 1, tovalue. Panics when it has none there. -
@PanicsAtCaller Public Method Bind<A: SqlValue>(name: String, value: A) Throws DatabaseErrormethod #Binds the parameter of
name, like ":id", tovalue. Panics when it has none of thatname. -
Sets each parameter to NULL.
-
Runs it, with its parameters as they're bound, and throws a DatabaseError when it fails.
-
Binds its parameters to values, in order, then runs it. Panics when it takes another number of them.
-
Binds its parameters to
athroughb, in order, then runs it. Panics when it takes another number of them. -
Binds its parameters to
athroughc, in order, then runs it. Panics when it takes another number of them. -
@PanicsAtCaller Public Method Execute<A, B, C, D>(a: A, b: B, c: C, d: D) Throws DatabaseErrormethod #Binds its parameters to
athroughd, in order, then runs it. Panics when it takes another number of them. -
@PanicsAtCaller Public Method Execute<A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E) Throws DatabaseErrormethod #Binds its parameters to
athroughe, in order, then runs it. Panics when it takes another number of them. -
@PanicsAtCaller Public Method Execute<A, B, C, D, E, F>(a: A, b: B, c: C, d: D, e: E, f: F) Throws DatabaseErrormethod #Binds its parameters to
athroughf, in order, then runs it. Panics when it takes another number of them. -
@PanicsAtCaller Public Method Execute<A, B, C, D, E, F, G>(a: A, b: B, c: C, d: D, e: E, f: F, g: G) Throws DatabaseErrormethod #Binds its parameters to
athroughg, in order, then runs it. Panics when it takes another number of them. -
@PanicsAtCaller Public Method Execute<A, B, C, D, E, F, G, H>(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H) Throws DatabaseErrormethod #Binds its parameters to
athroughh, in order, then runs it. Panics when it takes another number of them. -
The rows it reads, with its parameters as they're bound.
-
The rows it reads, with its parameters as they're bound, each a T that
Load<T>makes of an Object of its columns by their names, each an integer, a Double, text, bytes, or Null, so a T's Fields of numbers, Bools as 0 or 1, Strings, UInt8[]s, Enums by their names, and T?s take them, and a Field no column has takes its default, or else its zero. Throws a ParseError for a row that doesn't make a T, whose Path starts with the row's index, as "[2].Age" does. -
@PanicsAtCaller Public Method Query<T, A: SqlValue>(a: A): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to values, in order, as Execute does, then gives the rows it reads as Ts, as
Query<T>()does. -
@PanicsAtCaller Public Method Query<T, A, B>(a: A, b: B): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughb, in order, then gives the rows it reads as Ts. -
@PanicsAtCaller Public Method Query<T, A, B, C>(a: A, b: B, c: C): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughc, in order, then gives the rows it reads as Ts. -
@PanicsAtCaller Public Method Query<T, A, B, C, D>(a: A, b: B, c: C, d: D): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughd, in order, then gives the rows it reads as Ts. -
@PanicsAtCaller Public Method Query<T, A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughe, in order, then gives the rows it reads as Ts. -
@PanicsAtCaller Public Method Query<T, A, B, C, D, E, F>(a: A, b: B, c: C, d: D, e: E, f: F): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughf, in order, then gives the rows it reads as Ts. -
@PanicsAtCaller Public Method Query<T, A, B, C, D, E, F, G>(a: A, b: B, c: C, d: D, e: E, f: F, g: G): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughg, in order, then gives the rows it reads as Ts. -
@PanicsAtCaller Public Method Query<T, A, B, C, D, E, F, G, H>(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H): T[] Throws DatabaseError, ParseErrormethod #Binds its parameters to
athroughh, in order, then gives the rows it reads as Ts. -
Binds its parameters to values, in order, as Execute does, then gives the rows it reads.
-
Binds its parameters to
athroughb, in order, then gives the rows it reads. -
Binds its parameters to
athroughc, in order, then gives the rows it reads. -
@PanicsAtCaller Public Method Rows<A, B, C, D>(a: A, b: B, c: C, d: D): Row[] Throws DatabaseErrormethod #Binds its parameters to
athroughd, in order, then gives the rows it reads. -
@PanicsAtCaller Public Method Rows<A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E): Row[] Throws DatabaseErrormethod #Binds its parameters to
athroughe, in order, then gives the rows it reads. -
@PanicsAtCaller Public Method Rows<A, B, C, D, E, F>(a: A, b: B, c: C, d: D, e: E, f: F): Row[] Throws DatabaseErrormethod #Binds its parameters to
athroughf, in order, then gives the rows it reads. -
@PanicsAtCaller Public Method Rows<A, B, C, D, E, F, G>(a: A, b: B, c: C, d: D, e: E, f: F, g: G): Row[] Throws DatabaseErrormethod #Binds its parameters to
athroughg, in order, then gives the rows it reads. -
@PanicsAtCaller Public Method Rows<A, B, C, D, E, F, G, H>(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H): Row[] Throws DatabaseErrormethod #Binds its parameters to
athroughh, in order, then gives the rows it reads.
Report an issue with this page or with FutureBlitz on GitHub.