wasmcloud-interface-sqldb 0.6.0

Interface for wasmCloud actors to connect to a relational database using the capability 'wasmcloud:sqldb'
Documentation

This library provides the Rust implementation of the wasmcloud SQL database capability contract wasmcloud:sqldb.

The initial version of this interface supports executing sql queries (inserts, update, create table, etc.) and fetching data (select).

The api is intended to be independent of any specific relational database implementation (postgres, mysql, mariadb, sqlite, etc.).

For efficiency, query results are encoded in Compact Binary Object Representation CBOR, a language-neutral format. CBOR is designed to be an extensible, language-neutral, about 50-70% denser than JSON, and suitable for constrained environments (low cpu and memory requirements). Parsers are simple to write, and libraries are available in several languages.

This interface currently does not support:

  • transactions
  • streaming results
  • prepared statements