wasm-sql 0.1.6

Wasmtime host implementation for a SQL component WIT interface. Enables Wasm components to interact with SQL databases via the WebAssembly Component Model.
Documentation
package wasm-sql:core@0.1.0;

/// Base types for database-specific codec implementations.
/// Codecs handle encoding values to SQL and decoding results.
interface codecs {
  use util-types.{error};

  /// Result type for push operations (encoding values to arguments).
  type push-result = result<_, error>;

  /// Zero-based index of a row in query results.
  type row-index = u64;

  /// Identifies a column in query results by index or name.
  variant column-index {
    /// Column position (zero-based).
    index(u64),
    /// Column name as returned by the query.
    column-name(string)
  }

  /// Position of a value in query results: (row, column).
  type value-position = tuple<row-index, column-index>;
}