Results for “Std.Db.Session.Connection”
35 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Db.Session.Connection
A connection, and the bytes read from it that have not yet made a message.
- 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.Migrate.migrate
Std.Db.Session.Connection -> &Array[Std.Db.Migrate.Migration] -> Result[(Int, Std.Db.Session.Connection), Std.Db.Migrate.MigrationError]Bring the schema to what the program expects, on one PostgreSQL session.
- 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.withStatus
Std.Db.Session.Connection -> &Bytes -> Std.Db.Session.ConnectionThe transaction status the server reports with every message saying it is
- Std.Db.Session.write
&Std.Db.Session.Connection -> &Bytes -> Result[(), Std.Db.Session.DbError]Send bytes to the server.
- Std.Db.Store.change
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> Option[Str] -> T -> Result[(Int, Std.Db.Session.Connection), Std.Db.Store.StoreError]Change the one a key names.
- Std.Db.Store.load
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> Option[Str] -> Result[(Option[T], Std.Db.Session.Connection), Std.Db.Store.StoreError]Read the one a key names.
- Std.Db.Store.loadAll
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> Result[(Array[T], Std.Db.Session.Connection), Std.Db.Store.StoreError]Read every one.
- Std.Db.Store.loadForParents
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> Str -> &Array[Option[Str]] -> Result[(Map[Str, Array[T]], Std.Db.Session.Connection), Std.Db.Store.StoreError]Read everything belonging to any of these parents, in one statement.
- Std.Db.Store.loadWhere
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> &Std.Db.Query.Statement -> Result[(Array[T], Std.Db.Session.Connection), Std.Db.Store.StoreError]Read everything a statement chooses.
- Std.Db.Store.remove
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> Option[Str] -> Result[(Int, Std.Db.Session.Connection), Std.Db.Store.StoreError]Remove the one a key names.
- Std.Db.Store.save
Std.Db.Session.Connection -> &Std.Db.Store.Stored[T] -> T -> Result[(Int, Std.Db.Session.Connection), Std.Db.Store.StoreError]Add one, and say how many rows it changed.
- 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.commit
Std.Db.Session.Connection -> Result[Std.Db.Session.Connection, Std.Db.Session.DbError]Keep everything the transaction did.
- Std.Db.inTransaction
&Std.Db.Session.Connection -> BoolWhether a connection is inside a transaction, failed or not.
- 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.statusOf
&Std.Db.Session.Connection -> Std.Db.Session.TransactionStatusWhere a connection stands, so a caller can ask before acting.
- 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.
