2024-03-06 08:30:45 -05:00
|
|
|
declare module 'astro:db' {
|
2024-04-02 17:13:18 -05:00
|
|
|
type RuntimeConfig = typeof import('./dist/_internal/runtime/virtual.js');
|
2024-03-12 08:44:15 -05:00
|
|
|
|
2024-06-14 15:29:21 -05:00
|
|
|
export const db: import('./dist/runtime/index.js').Database;
|
2024-03-18 06:55:39 -05:00
|
|
|
export const dbUrl: string;
|
|
|
|
|
2024-03-12 08:44:15 -05:00
|
|
|
export const sql: RuntimeConfig['sql'];
|
|
|
|
export const NOW: RuntimeConfig['NOW'];
|
|
|
|
export const TRUE: RuntimeConfig['TRUE'];
|
|
|
|
export const FALSE: RuntimeConfig['FALSE'];
|
|
|
|
export const column: RuntimeConfig['column'];
|
|
|
|
export const defineDb: RuntimeConfig['defineDb'];
|
|
|
|
export const defineTable: RuntimeConfig['defineTable'];
|
2024-03-20 06:27:48 -05:00
|
|
|
export const isDbError: RuntimeConfig['isDbError'];
|
2024-03-12 08:44:15 -05:00
|
|
|
|
|
|
|
export const eq: RuntimeConfig['eq'];
|
|
|
|
export const gt: RuntimeConfig['gt'];
|
|
|
|
export const gte: RuntimeConfig['gte'];
|
|
|
|
export const lt: RuntimeConfig['lt'];
|
|
|
|
export const lte: RuntimeConfig['lte'];
|
|
|
|
export const ne: RuntimeConfig['ne'];
|
|
|
|
export const isNull: RuntimeConfig['isNull'];
|
|
|
|
export const isNotNull: RuntimeConfig['isNotNull'];
|
|
|
|
export const inArray: RuntimeConfig['inArray'];
|
|
|
|
export const notInArray: RuntimeConfig['notInArray'];
|
|
|
|
export const exists: RuntimeConfig['exists'];
|
|
|
|
export const notExists: RuntimeConfig['notExists'];
|
|
|
|
export const between: RuntimeConfig['between'];
|
|
|
|
export const notBetween: RuntimeConfig['notBetween'];
|
|
|
|
export const like: RuntimeConfig['like'];
|
|
|
|
export const notIlike: RuntimeConfig['notIlike'];
|
|
|
|
export const not: RuntimeConfig['not'];
|
|
|
|
export const asc: RuntimeConfig['asc'];
|
|
|
|
export const desc: RuntimeConfig['desc'];
|
|
|
|
export const and: RuntimeConfig['and'];
|
|
|
|
export const or: RuntimeConfig['or'];
|
2024-03-19 03:56:48 -05:00
|
|
|
export const count: RuntimeConfig['count'];
|
|
|
|
export const countDistinct: RuntimeConfig['countDistinct'];
|
|
|
|
export const avg: RuntimeConfig['avg'];
|
|
|
|
export const avgDistinct: RuntimeConfig['avgDistinct'];
|
|
|
|
export const sum: RuntimeConfig['sum'];
|
|
|
|
export const sumDistinct: RuntimeConfig['sumDistinct'];
|
|
|
|
export const max: RuntimeConfig['max'];
|
|
|
|
export const min: RuntimeConfig['min'];
|
2024-04-16 16:28:20 -05:00
|
|
|
export const alias: RuntimeConfig['alias'];
|
2024-03-06 08:30:45 -05:00
|
|
|
}
|