ensureOperationsLogSchema
ensureOperationsLogSchema<
TRegistry>(db,config):Promise<boolean>
Defined in: packages/server/src/operations-log/ddl.ts:29
Ensures the operations_log table exists in the database.
Returns true if the table is present, false if missing.
Consumers should include operationsLogTable from @pgxsinkit/server
in their Drizzle schema so drizzle-kit generate/push creates it.
Type Parameters
Section titled “Type Parameters”TRegistry
Section titled “TRegistry”TRegistry extends SyncTableRegistry
Parameters
Section titled “Parameters”PgAsyncDatabase<PgQueryResultHKT, ExtractTablesWithRelations<{ }, RegistryTables<TRegistry>>>
config
Section titled “config”OperationsLogConfig
Returns
Section titled “Returns”Promise<boolean>