Results for “Std.Db.Session.DbError”
29 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Db.Session.DbError
Opening a connection and keeping it: the handshake, what the server asks
- Std.Db.ConnectionString.connect
Str -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Open a real PostgreSQL session from a connection URI.
- Std.Db.ConnectionString.parse
Str -> Result[Std.Db.Session.Config, Std.Db.Session.DbError]Parse connection settings without connecting or including secrets in errors.
- Std.Db.ConnectionString.pool
Str -> Int -> Result[Std.Db.Pool, Std.Db.Session.DbError]Open a bounded pool from a connection URI.
- Std.Db.Migrate.recordOf
Std.Db.Session.Connection -> Result[(Array[Std.Db.Migrate.Applied], Std.Db.Session.Connection), Std.Db.Session.DbError]The record a database holds.
- Std.Db.Session.close
&Std.Db.Session.Connection -> Result[(), Std.Db.Session.DbError]Say the connection is finished, and close it.
- Std.Db.Session.connect
&Std.Db.Session.Config -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Open a connection and take it through to the point it will accept a query.
- Std.Db.Session.live
&Std.Db.Session.Connection -> Result[(), Std.Db.Session.DbError]Whether this value still names the current lending of its connection.
- Std.Db.Session.nextMessage
Std.Db.Session.Connection -> Result[(Std.Db.Protocol.Message, Std.Db.Session.Connection), Std.Db.Session.DbError]Read the next message, taking more from the socket only when what has
- Std.Db.Session.nextMessageLimited
Std.Db.Session.Connection -> Int -> Result[(Std.Db.Protocol.Message, Std.Db.Session.Connection), Std.Db.Session.DbError]Read one bounded message. A broken or partially consumed transport is closed.
- Std.Db.Session.renew
Std.Db.Session.Connection -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]End this lending and begin the next one.
- Std.Db.Session.serverFailure
&Bytes -> Std.Db.Session.DbErrorThe failure a server-reported error carries.
- Std.Db.Session.write
&Std.Db.Session.Connection -> &Bytes -> Result[(), Std.Db.Session.DbError]Send bytes to the server.
- Std.Db.begin
Std.Db.Session.Connection -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Begin a transaction.
- Std.Db.beginWith
Std.Db.Session.Connection -> &Std.Db.Isolation -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Begin a transaction at a stated level of protection.
- Std.Db.closePool
&Std.Db.Pool -> Result[(), Std.Db.Session.DbError]Close admission and every queued connection; borrowers close their own returns.
- Std.Db.commit
Std.Db.Session.Connection -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Keep everything the transaction did.
- Std.Db.pool
&Std.Db.Session.Config -> Int -> Result[Std.Db.Pool, Std.Db.Session.DbError]A pool of open connections, shared between threads.
- Std.Db.release
Std.Db.Session.Connection -> Str -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Forget a marked point, keeping everything done since.
- Std.Db.rollback
Std.Db.Session.Connection -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Undo everything the transaction did.
- Std.Db.rollbackTo
Std.Db.Session.Connection -> Str -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Undo back to a marked point, keeping what came before it.
- Std.Db.run
Std.Db.Session.Connection -> Str -> &Array[Option[Str]] -> Result[(Std.Db.Rows, Std.Db.Session.Connection), Std.Db.Session.DbError]Run a statement with values supplied apart from it.
- Std.Db.savepoint
Std.Db.Session.Connection -> Str -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Mark a point a transaction can be returned to without undoing all of it.
- Std.Db.simple
Std.Db.Session.Connection -> Str -> Result[(Std.Db.Rows, Std.Db.Session.Connection), Std.Db.Session.DbError]Run text the server plans and executes in one step.
- Std.Db.transaction
&Std.Db.Pool -> fn(Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection) -> Result[T, Std.Db.Session.DbError]Take a connection, run an action inside a transaction on it, and put it
- Std.Db.transactionWith
&Std.Db.Pool -> &Std.Db.Isolation -> fn(Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection) -> Result[T, Std.Db.Session.DbError]The same, at a stated level of protection.
- Std.Db.withConnection
&Std.Db.Pool -> fn(Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection) -> Result[T, Std.Db.Session.DbError]Take a connection, hand it to an action, and put it back however the action
- Std.Db.withSavepoint
Std.Db.Session.Connection -> Str -> fn(Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection)Run an action between two marked points, undoing back to the first if it
- Std.Db.withTransaction
Std.Db.Session.Connection -> fn(Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection) -> (Result[T, Std.Db.Session.DbError], Std.Db.Session.Connection)Run an action inside a transaction, and undo it if the action failed.
