diff --git a/drivers/sqlite.ts b/drivers/sqlite.ts index cac7201..f12966f 100644 --- a/drivers/sqlite.ts +++ b/drivers/sqlite.ts @@ -254,3 +254,4 @@ export type { Database as Driver } export { field } export { Vars } export { MigrationError, MigrationValidationError } from '../src/migration.ts' +export type { SchemaGeneric as Fields } diff --git a/src/model.ts b/src/model.ts index c504374..004d792 100644 --- a/src/model.ts +++ b/src/model.ts @@ -129,7 +129,6 @@ abstract class ModelBase implements ModelInstance { protected build_param_sql(schema_field: ParamsField): string { if (schema_field.alias_of) { - console.debug(schema_field.alias_of) return `:${schema_field.field_name}` } else { return `:${schema_field.field_name}` diff --git a/src/statement.ts b/src/statement.ts index 63c34d8..3e4736c 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -48,6 +48,8 @@ interface ExecInfo { } export interface Statement { + sql: string + one: (...[params]: OptionalOnEmpty) => Result | undefined all: (...[params]: OptionalOnEmpty) => Result[] exec: (...[params]: OptionalOnEmpty) => ExecInfo