syncShapeToTable<TSchema extends Record<string, unknown>,TTableKey extends keyof ExtractTablesWithRelations<TSchema>,TPrimaryKey extends keyof ExtractTablesWithRelations<TSchema>[TTableKey]["columns"],>(pgLite: PGLiteWithElectric,options: { table: TTableKey; primaryKey: TPrimaryKey; } & Omit<SyncShapeToTableOptions, "table" | "primaryKey">,): Promise<SyncShapeToTableResult>
Helper function to typesafe sync a shape to a table in pglite.
TSchema extends Record<string, unknown>
TTableKey extends keyof ExtractTablesWithRelations<TSchema>
TPrimaryKey extends keyof ExtractTablesWithRelations<TSchema>[TTableKey]["columns"]
pgLite: PGLiteWithElectric
PGLite Client
options: { table: TTableKey; primaryKey: TPrimaryKey; } & Omit<SyncShapeToTableOptions, "table" | "primaryKey">