- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import { type Config, type Connection } from '@tidbcloud/serverless';
|
|
import { entityKind } from "../entity.js";
|
|
import type { Logger } from "../logger.js";
|
|
import { MySqlDatabase } from "../mysql-core/db.js";
|
|
import { type DrizzleConfig } from "../utils.js";
|
|
import type { TiDBServerlessPreparedQueryHKT, TiDBServerlessQueryResultHKT } from "./session.js";
|
|
export interface TiDBServerlessSDriverOptions {
|
|
logger?: Logger;
|
|
cache?: Cache;
|
|
}
|
|
export declare class TiDBServerlessDatabase<TSchema extends Record<string, unknown> = Record<string, never>> extends MySqlDatabase<TiDBServerlessQueryResultHKT, TiDBServerlessPreparedQueryHKT, TSchema> {
|
|
static readonly [entityKind]: string;
|
|
}
|
|
export declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends Connection = Connection>(...params: [
|
|
TClient | string
|
|
] | [
|
|
TClient | string,
|
|
DrizzleConfig<TSchema>
|
|
] | [
|
|
({
|
|
connection: string | Config;
|
|
} | {
|
|
client: TClient;
|
|
}) & DrizzleConfig<TSchema>
|
|
]): TiDBServerlessDatabase<TSchema> & {
|
|
$client: TClient;
|
|
};
|
|
export declare namespace drizzle {
|
|
function mock<TSchema extends Record<string, unknown> = Record<string, never>>(config?: DrizzleConfig<TSchema>): TiDBServerlessDatabase<TSchema> & {
|
|
$client: '$client is not available on drizzle.mock()';
|
|
};
|
|
}
|