✅ Complete Astro migration - PDPA compliant website
- 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
This commit is contained in:
57
dealplustech-astro/node_modules/drizzle-orm/gel/session.d.cts
generated
vendored
Normal file
57
dealplustech-astro/node_modules/drizzle-orm/gel/session.d.cts
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
import type { Client } from 'gel';
|
||||
import type { Transaction } from 'gel/dist/transaction';
|
||||
import { type Cache } from "../cache/core/index.cjs";
|
||||
import type { WithCacheConfig } from "../cache/core/types.cjs";
|
||||
import { entityKind } from "../entity.cjs";
|
||||
import type { GelDialect } from "../gel-core/dialect.cjs";
|
||||
import type { SelectedFieldsOrdered } from "../gel-core/query-builders/select.types.cjs";
|
||||
import { GelPreparedQuery, GelSession, GelTransaction, type PreparedQueryConfig } from "../gel-core/session.cjs";
|
||||
import { type Logger } from "../logger.cjs";
|
||||
import type { RelationalSchemaConfig, TablesRelationalConfig } from "../relations.cjs";
|
||||
import { type Query, type SQL } from "../sql/sql.cjs";
|
||||
export type GelClient = Client | Transaction;
|
||||
export declare class GelDbPreparedQuery<T extends PreparedQueryConfig> extends GelPreparedQuery<T> {
|
||||
private client;
|
||||
private queryString;
|
||||
private params;
|
||||
private logger;
|
||||
private fields;
|
||||
private _isResponseInArrayMode;
|
||||
private customResultMapper?;
|
||||
private transaction;
|
||||
static readonly [entityKind]: string;
|
||||
constructor(client: GelClient, queryString: string, params: unknown[], logger: Logger, cache: Cache, queryMetadata: {
|
||||
type: 'select' | 'update' | 'delete' | 'insert';
|
||||
tables: string[];
|
||||
} | undefined, cacheConfig: WithCacheConfig | undefined, fields: SelectedFieldsOrdered | undefined, _isResponseInArrayMode: boolean, customResultMapper?: ((rows: unknown[][]) => T["execute"]) | undefined, transaction?: boolean);
|
||||
execute(placeholderValues?: Record<string, unknown> | undefined): Promise<T['execute']>;
|
||||
all(placeholderValues?: Record<string, unknown> | undefined): Promise<T['all']>;
|
||||
}
|
||||
export interface GelSessionOptions {
|
||||
logger?: Logger;
|
||||
cache?: Cache;
|
||||
}
|
||||
export declare class GelDbSession<TFullSchema extends Record<string, unknown>, TSchema extends TablesRelationalConfig> extends GelSession<GelQueryResultHKT, TFullSchema, TSchema> {
|
||||
private client;
|
||||
private schema;
|
||||
private options;
|
||||
static readonly [entityKind]: string;
|
||||
private logger;
|
||||
private cache;
|
||||
constructor(client: GelClient, dialect: GelDialect, schema: RelationalSchemaConfig<TSchema> | undefined, options?: GelSessionOptions);
|
||||
prepareQuery<T extends PreparedQueryConfig = PreparedQueryConfig>(query: Query, fields: SelectedFieldsOrdered | undefined, name: string | undefined, isResponseInArrayMode: boolean, customResultMapper?: (rows: unknown[][]) => T['execute'], queryMetadata?: {
|
||||
type: 'select' | 'update' | 'delete' | 'insert';
|
||||
tables: string[];
|
||||
}, cacheConfig?: WithCacheConfig): GelDbPreparedQuery<T>;
|
||||
transaction<T>(transaction: (tx: GelTransaction<GelQueryResultHKT, TFullSchema, TSchema>) => Promise<T>): Promise<T>;
|
||||
count(sql: SQL): Promise<number>;
|
||||
}
|
||||
export declare class GelDbTransaction<TFullSchema extends Record<string, unknown>, TSchema extends TablesRelationalConfig> extends GelTransaction<GelQueryResultHKT, TFullSchema, TSchema> {
|
||||
static readonly [entityKind]: string;
|
||||
transaction<T>(transaction: (tx: GelDbTransaction<TFullSchema, TSchema>) => Promise<T>): Promise<T>;
|
||||
}
|
||||
export interface GelQueryResultHKT {
|
||||
readonly $brand: 'GelQueryResultHKT';
|
||||
readonly row: unknown;
|
||||
readonly type: unknown;
|
||||
}
|
||||
Reference in New Issue
Block a user