- Imports:
- interface
wasi:sql/types@0.2.0-draft - interface
wasi:sql/readwrite@0.2.0-draft
- interface
common data types
int32:s32int64:s64uint32:u32uint64:u64float:float64double:float64str:stringboolean:booldate:stringtime:stringtimestamp:stringbinary: list<u8>null
one single row item
field-name:stringvalue:data-type
allows parameterized queries e.g., prepare("SELECT * FROM users WHERE name = ? AND age = ?", vec!["John Doe", "32"])
An error resource type. Currently, this provides only one function to return a string representation of the error. In the future, this will be extended to provide more information.
query:stringparams: list<string>
self: borrow<error>
- result<own<
connection>, own<error>>
#### `type error` [`error`](#error)
#### `type connection` [`connection`](#connection)
----
query is optimized for querying data, and implementors can make use of that fact to optimize the performance of query execution (e.g., using indexes).
c: borrow<connection>q: borrow<statement>
exec is for modifying data in the database.
c: borrow<connection>q: borrow<statement>
- result<
u32, own<error>>