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>;
}