UNPKG

@compas/store

Version:

Postgres & S3-compatible wrappers for common things

31 lines (30 loc) 3.47 kB
export const queries: { sessionStoreTokenCount: (sql: import("../../../index.js").Postgres, where: import("./types.js").StoreSessionStoreTokenWhere) => Promise<number>; sessionStoreTokenInsert: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreSessionStoreTokenInsert["insert"], _options?: { withPrimaryKey?: boolean; }) => Promise<Array<import("./types.js").StoreSessionStoreToken>>; sessionStoreTokenUpdate: (sql: import("../../../index.js").Postgres, update: import("./types.js").StoreSessionStoreTokenUpdate) => Promise<Array<import("./types.js").StoreSessionStoreToken>>; sessionStoreTokenDelete: (sql: import("../../../index.js").Postgres, where?: import("./types.js").StoreSessionStoreTokenWhere) => Promise<void>; sessionStoreTokenUpsertOnId: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreSessionStoreTokenInsert["insert"]) => Promise<Array<import("./types.js").StoreSessionStoreToken>>; sessionStoreCount: (sql: import("../../../index.js").Postgres, where: import("./types.js").StoreSessionStoreWhere) => Promise<number>; sessionStoreInsert: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreSessionStoreInsert["insert"], _options?: { withPrimaryKey?: boolean; }) => Promise<Array<import("./types.js").StoreSessionStore>>; sessionStoreUpdate: (sql: import("../../../index.js").Postgres, update: import("./types.js").StoreSessionStoreUpdate) => Promise<Array<import("./types.js").StoreSessionStore>>; sessionStoreDelete: (sql: import("../../../index.js").Postgres, where?: import("./types.js").StoreSessionStoreWhere) => Promise<void>; sessionStoreUpsertOnId: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreSessionStoreInsert["insert"]) => Promise<Array<import("./types.js").StoreSessionStore>>; jobCount: (sql: import("../../../index.js").Postgres, where: import("./types.js").StoreJobWhere) => Promise<number>; jobInsert: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreJobInsert["insert"], _options?: { withPrimaryKey?: boolean; }) => Promise<Array<import("./types.js").StoreJob>>; jobUpdate: (sql: import("../../../index.js").Postgres, update: import("./types.js").StoreJobUpdate) => Promise<Array<import("./types.js").StoreJob>>; jobDelete: (sql: import("../../../index.js").Postgres, where?: import("./types.js").StoreJobWhere) => Promise<void>; jobUpsertOnId: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreJobInsert["insert"]) => Promise<Array<import("./types.js").StoreJob>>; fileCount: (sql: import("../../../index.js").Postgres, where: import("./types.js").StoreFileWhere) => Promise<number>; fileInsert: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreFileInsert["insert"], _options?: { withPrimaryKey?: boolean; }) => Promise<Array<import("./types.js").StoreFile>>; fileUpdate: (sql: import("../../../index.js").Postgres, update: import("./types.js").StoreFileUpdate) => Promise<Array<import("./types.js").StoreFile>>; fileDelete: (sql: import("../../../index.js").Postgres, where?: import("./types.js").StoreFileWhere) => Promise<void>; fileUpsertOnId: (sql: import("../../../index.js").Postgres, insert: import("./types.js").StoreFileInsert["insert"]) => Promise<Array<import("./types.js").StoreFile>>; };