A row spec: each field and its column type. The column of a field is from()'s, else the field's name ignoring case, else its UPPER_SNAKE_CASE (idUsuario reads ID_USUARIO). NULL fails a field that is not nullable().
from()
idUsuario
ID_USUARIO
nullable()
const Usuario = rowSpec({ id: col.int(), nombre: col.string(), activo: col.boolean(), baja: col.date().nullable() });const usuarios = await oracle.query('SELECT id, nombre, activo, baja FROM usuarios', {}, { rows: Usuario }); Copy
const Usuario = rowSpec({ id: col.int(), nombre: col.string(), activo: col.boolean(), baja: col.date().nullable() });const usuarios = await oracle.query('SELECT id, nombre, activo, baja FROM usuarios', {}, { rows: Usuario });
A row spec: each field and its column type. The column of a field is
from()'s, else the field's name ignoring case, else its UPPER_SNAKE_CASE (idUsuarioreadsID_USUARIO). NULL fails a field that is notnullable().