Std.Db.Repository
19 public declarations
- 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.
- changed
&Std.Db.Driver.Rows -> IntHow many rows a statement that produced none reported changing.
- column
&Std.Db.Driver.Rows -> Str -> fn(Str) -> Option[T] -> Result[Array[T], Std.Db.Repository.RowError]One column of every row, mapped.
- count
&Std.Db.Driver.Rows -> Int -> Str -> Result[Int, Std.Db.Repository.RowError]One column as a count, which may not.
- explain
&Std.Db.Repository.RowError -> StrWhat a refusal says.
- 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.
- hasColumn
&Std.Db.Driver.Rows -> Str -> BoolWhether a result has a column of that name.
- Mapper
How a row becomes a value.
- nameOf
&Std.Db.Repository.Repository[T, K] -> StrWhat the repository is over.
- 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.
- 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.
- 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.
- repository
Str -> fn(K) -> Result[Option[T], Std.Db.Repository.RowError] -> fn() -> Result[Array[T], Std.Db.Repository.RowError] -> fn(T) -> Result[Int, Std.Db.Repository.RowError] -> fn(K) -> Result[Int, Std.Db.Repository.RowError] -> Std.Db.Repository.Repository[T, K]A repository from its operations.
- Repository
What a program can do with one kind of thing.
- RowError
Why a row would not become a value.
- 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.
- truth
&Std.Db.Driver.Rows -> Int -> Str -> Result[Bool, Std.Db.Repository.RowError]One column as a truth.
- whole
&Std.Db.Driver.Rows -> Int -> Str -> Result[Int, Std.Db.Repository.RowError]One column as a whole number, which may be below nothing.
- 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.
