Results for “Std.Db.Driver.Rows”
43 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Db.Driver.Rows
What a statement answered: its columns, its rows, and the command that ran.
- Std.App.Database.execute
&Std.App.Database.Database -> Str -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]Run a statement that carries no values.
- Std.App.Database.query
&Std.App.Database.Database -> Str -> &Array[Std.Db.Driver.Value] -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]SQL and placeholders follow the selected driver; values are always separate.
- Std.App.Database.queryAll
&Std.App.Database.Database -> Str -> &Array[Std.Db.Driver.Value] -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Row.RowError] -> Result[Array[T], Std.App.Database.QueryError]Every row a query answered, each read by the mapper.
- Std.App.Database.queryOne
&Std.App.Database.Database -> Str -> &Array[Std.Db.Driver.Value] -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Row.RowError] -> Result[T, Std.App.Database.QueryError]The single row a query answered, or an error when it answered none or several.
- Std.App.Database.queryOptional
&Std.App.Database.Database -> Str -> &Array[Std.Db.Driver.Value] -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Row.RowError] -> Result[Option[T], Std.App.Database.QueryError]The one row a query answered, or nothing.
- Std.App.Database.transaction
&Std.App.Database.Database -> fn(Std.Db.Driver.Tx) -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error] -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]The selected driver owns the connection for the complete action.
- Std.Db.Driver.ask
&Std.Db.Driver.Tx -> Str -> &Array[Std.Db.Driver.Value] -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]Ask a transaction's own connection, rather than the pool.
- Std.Db.Driver.execute
&Std.Db.Driver.Client -> Str -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]Run a statement that carries no values.
- Std.Db.Driver.query
&Std.Db.Driver.Client -> Str -> &Array[Std.Db.Driver.Value] -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]Run a statement with values bound to its placeholders.
- Std.Db.Driver.run
&Std.Db.Driver.Tx -> Str -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]Run a statement on the connection a transaction holds.
- Std.Db.Driver.transaction
&Std.Db.Driver.Client -> fn(Std.Db.Driver.Tx) -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error] -> Result[Std.Db.Driver.Rows, Std.Db.Driver.Error]Run an action inside a transaction, on one connection, whichever backend
- Std.Db.Repository.all
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Repository.RowError] -> Result[Array[T], Std.Db.Repository.RowError]Every row as a value.
- Std.Db.Repository.changed
&Std.Db.Driver.Rows -> IntHow many rows a statement that produced none reported changing.
- Std.Db.Repository.column
&Std.Db.Driver.Rows -> Str -> fn(Str) -> Option[T] -> Result[Array[T], Std.Db.Repository.RowError]One column of every row, mapped.
- Std.Db.Repository.count
&Std.Db.Driver.Rows -> Int -> Str -> Result[Int, Std.Db.Repository.RowError]One column as a count, which may not.
- Std.Db.Repository.first
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Repository.RowError] -> Result[Option[T], Std.Db.Repository.RowError]The first row as a value, for a caller that asked for several and means it.
- Std.Db.Repository.hasColumn
&Std.Db.Driver.Rows -> Str -> BoolWhether a result has a column of that name.
- Std.Db.Repository.one
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Repository.RowError] -> Result[T, Std.Db.Repository.RowError]Exactly one row as a value.
- Std.Db.Repository.optional
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Repository.RowError] -> Result[Option[T], Std.Db.Repository.RowError]At most one row as a value.
- Std.Db.Repository.optionalText
&Std.Db.Driver.Rows -> Int -> Str -> Result[Option[Str], Std.Db.Repository.RowError]One column of one row as text, which must be there and may hold nothing.
- Std.Db.Repository.text
&Std.Db.Driver.Rows -> Int -> Str -> Result[Str, Std.Db.Repository.RowError]One column of one row as text, which must be there and must hold something.
- Std.Db.Repository.truth
&Std.Db.Driver.Rows -> Int -> Str -> Result[Bool, Std.Db.Repository.RowError]One column as a truth.
- Std.Db.Repository.whole
&Std.Db.Driver.Rows -> Int -> Str -> Result[Int, Std.Db.Repository.RowError]One column as a whole number, which may be below nothing.
- Std.Db.Repository.wholeOr
&Std.Db.Driver.Rows -> Int -> Str -> Int -> Result[Int, Std.Db.Repository.RowError]One column as a whole number, or a fallback when it holds nothing.
- Std.Db.Row.at
&Std.Db.Driver.Rows -> Int -> Int -> Result[Std.Db.Driver.Value, Std.Db.Row.RowError]The value at a row and column, both counted from zero.
- Std.Db.Row.bytes
&Std.Db.Driver.Rows -> Int -> Str -> Result[Bytes, Std.Db.Row.RowError]A named column read as raw bytes.
- Std.Db.Row.decimal
&Std.Db.Driver.Rows -> Int -> Str -> Result[Decimal, Std.Db.Row.RowError]A named column read as an exact decimal.
- Std.Db.Row.indexOf
&Std.Db.Driver.Rows -> Str -> Result[Int, Std.Db.Row.RowError]Named access refuses duplicate labels, which require aliases or indexed access.
- Std.Db.Row.integer
&Std.Db.Driver.Rows -> Int -> Str -> Result[Int64, Std.Db.Row.RowError]A named column read as a whole number.
- Std.Db.Row.map
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Row.RowError] -> Result[Array[T], Std.Db.Row.RowError]Mapping order follows the result; the first mapper failure stops consumption.
- Std.Db.Row.nullable
&Std.Db.Driver.Rows -> Int -> Str -> Result[Option[Std.Db.Driver.Value], Std.Db.Row.RowError]None means a present SQL NULL, never a missing column or malformed row.
- Std.Db.Row.one
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Row.RowError] -> Result[T, Std.Db.Row.RowError]The single row a query answered, or an error when it answered none or several.
- Std.Db.Row.optional
&Std.Db.Driver.Rows -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Row.RowError] -> Result[Option[T], Std.Db.Row.RowError]The one row a query answered, or nothing. Several rows is an error.
- Std.Db.Row.real
&Std.Db.Driver.Rows -> Int -> Str -> Result[Float64, Std.Db.Row.RowError]A named column read as a binary floating number.
- Std.Db.Row.text
&Std.Db.Driver.Rows -> Int -> Str -> Result[Str, Std.Db.Row.RowError]A named column read as text. A null is an error, not an empty string.
- Std.Db.Row.truth
&Std.Db.Driver.Rows -> Int -> Str -> Result[Bool, Std.Db.Row.RowError]A named column read as a truth value.
- Std.Db.Row.value
&Std.Db.Driver.Rows -> Int -> Str -> Result[Std.Db.Driver.Value, Std.Db.Row.RowError]The value in a named column of a row, whatever its kind.
- Std.Db.Store.groupedBy
&Std.Db.Store.Stored[T] -> &Std.Db.Driver.Rows -> Str -> Result[Map[Str, Array[T]], Std.Db.Store.StoreError]What belongs to several parents, as a map from each parent's key to what
- Std.Db.Store.readAll
&Std.Db.Store.Stored[T] -> &Std.Db.Driver.Rows -> Result[Array[T], Std.Db.Store.StoreError]Every row of a result as a value.
- Std.Db.Store.readOne
&Std.Db.Store.Stored[T] -> &Std.Db.Driver.Rows -> Result[Option[T], Std.Db.Store.StoreError]At most one row of a result as a value.
- Std.Db.Store.stored
Str -> Str -> &Array[Str] -> fn(T) -> Array[Option[Str]] -> fn(Std.Db.Driver.Rows, Int) -> Result[T, Std.Db.Repository.RowError] -> Std.Db.Store.Stored[T]Describe how a value is written to a table and read back.
- Std.Db.asDriverRows
&Std.Db.Rows -> Std.Db.Driver.RowsThis result as the driver layer carries one.
