Erster Commit

This commit is contained in:
2026-08-22 08:40:29 +02:00
commit 875477d425
1961 changed files with 930336 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
/**
* Adapted from https://github.com/mysqljs/sqlstring/blob/cd528556b4b6bcf300c3db515026935dedf7cfa1/lib/SqlString.js
* MIT LICENSE: https://github.com/mysqljs/sqlstring/blob/cd528556b4b6bcf300c3db515026935dedf7cfa1/LICENSE
*/
import type { Raw, SqlValue, TemporalValue, Timezone } from './types.js';
import { Buffer } from 'node:buffer';
export type { Raw, SqlValue, TemporalValue, Timezone } from './types.js';
export declare const dateToString: (date: Date, timezone: Timezone) => string;
export declare const temporalToString: (value: TemporalValue, timezone?: Timezone) => string;
export declare const escapeId: (value: SqlValue, forbidQualified?: boolean) => string;
export declare const objectToValues: (object: Record<string, SqlValue> | Map<string, SqlValue>, timezone?: Timezone) => string;
export declare const bufferToString: (buffer: Buffer) => string;
export declare const arrayToList: (array: SqlValue[], timezone?: Timezone) => string;
export declare const escape: (value: SqlValue, stringifyObjects?: boolean, timezone?: Timezone) => string;
export declare const format: (sql: string, values?: SqlValue | SqlValue[], stringifyObjects?: boolean, timezone?: Timezone) => string;
export declare const raw: (sql: string) => Raw;