PostgreSQL for Bjolang: bjosql over Npgsql, for bjoroutines
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>
This commit is contained in:
commit
b7e9c8076f
8 changed files with 1391 additions and 0 deletions
17
manifest.bjodat
Normal file
17
manifest.bjodat
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(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.
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue