longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
34 lines • 2.71 kB
TypeScript
export { ValidationError } from './errors/ValidationError';
export { PermissionError } from './errors/PermissionError';
export { SchemaError } from './errors/SchemaError';
export { SchemaMismatchError } from './errors/SchemaMismatchError';
export { defineTable } from './schema/defineTable';
export { string, number, boolean, date, json, ColumnBuilder } from './schema/columnBuilder';
export { createSheetAdapter, SheetAdapter } from './adapter/sheetAdapter';
export { DriveStorageAdapter } from './adapter/driveStorageAdapter';
export { createOAuthManager, createLoginOAuthManager, OAuthManager } from './auth/oauth';
export { createAuthRouter } from './auth/router';
export { hashPassword, comparePassword, validatePasswordStrength } from './auth/password';
export type { TableSchema, ColumnDefinition, SheetDBConfig, ActorConfig, ActorPermission, SheetStyleConfig, SheetReadCacheConfig, BooleanFormat, SchemaMismatchBehaviour, UserContext, FindOptions, UpdateOptions, UpsertOptions, DeleteOptions, CreateOptions, OAuthTokens, TokenStore, DriveFolderConfig, UploadOptions, StorageAdapter, CreateUserSheetOptions, } from './schema/types';
export { computeSchemaHash } from './utils/schemaHash';
export type { SheetAdapterConfig } from './adapter/sheetAdapter';
export type { OAuthConfig } from './auth/oauth';
export type { AuthRouterOptions, AuthRouter, GoogleProfile, RegistrationPolicy, } from './auth/router';
export type { DatabaseAdapter, TableOperations, StorageClient } from './adapter/types';
export type { ColumnValidationRule } from './adapter/sheetClient';
export { createPostgresAdapter } from './adapter/sql/postgresAdapter';
export type { PostgresAdapterConfig } from './adapter/sql/postgresAdapter';
export { createMySQLAdapter } from './adapter/sql/mysqlAdapter';
export type { MySQLAdapterConfig } from './adapter/sql/mysqlAdapter';
export { createPrismaAdapter, PrismaAdapterBase } from './adapter/sql/prismaAdapter';
export type { PrismaAdapterConfig } from './adapter/sql/prismaAdapter';
export { SQLAdapterBase } from './adapter/sql/sqlAdapterBase';
export type { SQLAdapterConfig } from './adapter/sql/sqlAdapterBase';
export type { SQLConnection, SQLQueryResult } from './adapter/sql/connection';
export type { SQLDialect } from './adapter/sql/dialect';
export { PostgresDialect, MySQLDialect } from './adapter/sql/dialect';
export { createDatabaseAdapter } from './adapter/createDatabaseAdapter';
export type { DBDriver, DatabaseAdapterFactoryConfig } from './adapter/createDatabaseAdapter';
export { hasPermission, resolveNonAdminTenantKey } from './adapter/accessControl';
export type { AccessControlContext } from './adapter/accessControl';
//# sourceMappingURL=index.d.ts.map