(
dialect: BaseDriver,
schema: string,
table: string,
where: Record<string, unknown>,
options?: { limit?: number; offset?: number }
)
| 42 | } |
| 43 | |
| 44 | export function selectFrom( |
| 45 | dialect: BaseDriver, |
| 46 | schema: string, |
| 47 | table: string, |
| 48 | where: Record<string, unknown>, |
| 49 | options?: { limit?: number; offset?: number } |
| 50 | ): string { |
| 51 | return [ |
| 52 | "SELECT", |
| 53 | "*", |
| 54 | "FROM", |
| 55 | `${dialect.escapeId(schema)}.${dialect.escapeId(table)}`, |
| 56 | generateWhere(dialect, where), |
| 57 | generateLimit(options?.limit, options?.offset), |
| 58 | ] |
| 59 | .filter(Boolean) |
| 60 | .join(" "); |
| 61 | } |
| 62 | |
| 63 | export function insertInto( |
| 64 | dialect: BaseDriver, |
nothing calls this directly
no test coverage detected