Results for “Std.Db.Driver.error”
23 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Db.Driver.Error
Why a database call did not succeed, and which driver said so.
- Std.Db.Driver.error
Str -> Str -> Str -> Std.Db.Driver.ErrorAn error naming the driver, the kind of failure, and what happened.
- Std.App.Database.create
Str -> Int -> Result[Std.App.Database.Database, Std.Db.Driver.Error]Select a bundled connector from the connection-string scheme.
- 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.fromConfig
&Std.App.Config.Config -> Str -> Int -> Result[Std.App.Database.Database, Std.Db.Driver.Error]Prepare a database from the connection string a setting names.
- Std.App.Database.fromConfigWith
Std.Db.Driver.Driver -> &Std.App.Config.Config -> Str -> Int -> Result[Std.App.Database.Database, Std.Db.Driver.Error]Prepare a database from a setting, using the given driver.
- 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.start
&Std.App.Database.Database -> Result[(), Std.Db.Driver.Error]Open the connections. Called by the stage rather than by a caller.
- Std.App.Database.stop
&Std.App.Database.Database -> Result[(), Std.Db.Driver.Error]Clear admission before closing; repeated stops are harmless.
- Std.App.Database.storeTarget
&Std.App.Database.Database -> Result[Std.Db.Store.Target, Std.Db.Driver.Error]This database as a store reads and writes it. A database that is not
- 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.App.Database.withDriver
Std.Db.Driver.Driver -> Str -> Int -> Result[Std.App.Database.Database, Std.Db.Driver.Error]Prepare any developer-supplied connector; sockets open during stage startup.
- Std.App.Database.withDrivers
&Array[Std.Db.Driver.Driver] -> Str -> Int -> Result[Std.App.Database.Database, Std.Db.Driver.Error]Select a connector from an explicit set, without a process-global registry.
- 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.close
&Std.Db.Driver.Client -> Result[(), Std.Db.Driver.Error]Close a client and the connections it holds.
- Std.Db.Driver.connect
&Array[Std.Db.Driver.Driver] -> Str -> Int -> Result[Std.Db.Driver.Client, Std.Db.Driver.Error]Open a client for a connection string, using the first driver that knows the scheme.
- 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.select
&Array[Std.Db.Driver.Driver] -> Str -> Result[Std.Db.Driver.Driver, Std.Db.Driver.Error]Select exactly one driver without exposing connection-string contents in errors.
- 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.Postgres.connect
Str -> Int -> Result[Std.Db.Driver.Client, Std.Db.Driver.Error]Open a client on a PostgreSQL connection string.
- Std.Db.Sqlite.connect
Str -> Int -> Result[Std.Db.Driver.Client, Std.Db.Driver.Error]One serialized connection preserves a single database for :memory: clients.
