22 lines
683 B
TypeScript
22 lines
683 B
TypeScript
// 统一从本包取 Kysely 与 sql,避免各包各装一份 kysely
|
|
export { type Kysely, type RawBuilder, type Selectable, sql, type Transaction } from "kysely";
|
|
export {
|
|
type CachedOptions,
|
|
cachedCall,
|
|
DEFAULT_CACHE_SIZE,
|
|
DEFAULT_CACHE_TTL,
|
|
PgCache,
|
|
pgCacheFor,
|
|
type SetOptions as CacheSetOptions,
|
|
} from "./cache.ts";
|
|
export { type CreateDbOptions, createDb } from "./client.ts";
|
|
export { createMigrator, MIGRATIONS_DIR, type MigratorOptions, migrateToLatest, resetSchema } from "./migrator.ts";
|
|
export {
|
|
type AcquireOptions,
|
|
type AcquireResult,
|
|
type BucketSpec,
|
|
PgTokenBucket,
|
|
pgTokenBucketFor,
|
|
} from "./rate-limit.ts";
|
|
export type * from "./types.ts";
|