Every operation suspends its fiber while it waits for the server, and the ambient cancellation token cancels the query. A Db is a pool; a transaction holds one connection and hands its function a Db bound to it, and a nested one is a savepoint. Each SqlValue is a typed parameter, and a value is read back by the PostgreSQL type of its column. The server's errors are DbError with its SQLSTATE, and a lost connection is DbError 08000. 🤖 Generated with [ECA](https://eca.dev) Co-Authored-By: eca-agent <git@eca.dev>
17 lines
492 B
Text
17 lines
492 B
Text
(package
|
|
(name (bjopg))
|
|
(version "0.1.0")
|
|
(description "PostgreSQL for Bjolang: the bjosql query language over Npgsql, for bjoroutines.")
|
|
(license "MPL-2.0")
|
|
|
|
(depends
|
|
(package (name (bjosql))
|
|
(version (version-at-least "0.3.0"))
|
|
(source (git (url "https://github.com/bjoli/bjosql")))))
|
|
|
|
;; A program using this package declares nothing itself.
|
|
(packages
|
|
(nuget (id "Npgsql") (version "10.0.0")))
|
|
|
|
;; A library: there is no src/main.bjo.
|
|
)
|