@compas/store
Version:
Postgres & S3-compatible wrappers for common things
88 lines (87 loc) • 4.32 kB
TypeScript
/**
* Reusable where clause generator. This is used by other generated queries, and can be used inline
* in custom queries.
*
* @param {import("../common/types.js").StoreSessionStoreWhere} [where]
* @param {{ skipValidator?: boolean, shortName?: string }} [options]
* @returns {import("@compas/store").QueryPart<any>}
*/
export function sessionStoreWhere(where?: import("../common/types.js").StoreSessionStoreWhere, options?: {
skipValidator?: boolean;
shortName?: string;
}): import("@compas/store").QueryPart<any>;
/**
* Reusable ORDER BY clause generator. This is used by other generated queries, and can be used
* inline in custom queries.
*
* @param {import("../common/types.js").StoreSessionStoreOrderBy} [orderBy]
* @param {import("../common/types.js").StoreSessionStoreOrderBySpec} [orderBySpec]
* @param {{ skipValidator?: boolean, shortName?: string }} [options]
* @returns {import("@compas/store").QueryPart<any>}
*/
export function sessionStoreOrderBy(orderBy?: import("../common/types.js").StoreSessionStoreOrderBy, orderBySpec?: import("../common/types.js").StoreSessionStoreOrderBySpec, options?: {
skipValidator?: boolean;
shortName?: string;
}): import("@compas/store").QueryPart<any>;
/**
* Query records in the 'sessionStore' table, optionally joining related tables.
*
* @param {import("../common/types.js").StoreSessionStoreQueryBuilder} [input]
* @returns {import("@compas/store").WrappedQueryPart<import("../common/types.js").QueryResultStoreSessionStore>}
*/
export function querySessionStore(input?: import("../common/types.js").StoreSessionStoreQueryBuilder): import("@compas/store").WrappedQueryPart<import("../common/types.js").QueryResultStoreSessionStore>;
export namespace sessionStoreQueries {
export { sessionStoreCount };
export { sessionStoreInsert };
export { sessionStoreUpdate };
export { sessionStoreDelete };
export { sessionStoreUpsertOnId };
}
/** @type {any} */
export const sessionStoreWhereSpec: any;
/** @type {any} */
export const sessionStoreQueryBuilderSpec: any;
/**
* Count the records in the 'sessionStore' table
*
* @param {import("@compas/store").Postgres} sql
* @param {import("../common/types.js").StoreSessionStoreWhere} where
* @returns {Promise<number>}
*/
declare function sessionStoreCount(sql: import("@compas/store").Postgres, where: import("../common/types.js").StoreSessionStoreWhere): Promise<number>;
/**
* Insert a record in the 'sessionStore' table
*
* @param {import("@compas/store").Postgres} sql
* @param {import("../common/types.js").StoreSessionStoreInsert["insert"]} insert
* @param {{ withPrimaryKey?: boolean }} [_options={}]
* @returns {Promise<Array<import("../common/types.js").StoreSessionStore>>}
*/
declare function sessionStoreInsert(sql: import("@compas/store").Postgres, insert: import("../common/types.js").StoreSessionStoreInsert["insert"], _options?: {
withPrimaryKey?: boolean;
}): Promise<Array<import("../common/types.js").StoreSessionStore>>;
/**
* Insert a record in the 'sessionStore' table
*
* @param {import("@compas/store").Postgres} sql
* @param {import("../common/types.js").StoreSessionStoreUpdate} update
* @returns {Promise<Array<import("../common/types.js").StoreSessionStore>>}
*/
declare function sessionStoreUpdate(sql: import("@compas/store").Postgres, update: import("../common/types.js").StoreSessionStoreUpdate): Promise<Array<import("../common/types.js").StoreSessionStore>>;
/**
* Insert a record in the 'sessionStore' table
*
* @param {import("@compas/store").Postgres} sql
* @param {import("../common/types.js").StoreSessionStoreWhere} [where]
* @returns {Promise<void>}
*/
declare function sessionStoreDelete(sql: import("@compas/store").Postgres, where?: import("../common/types.js").StoreSessionStoreWhere): Promise<void>;
/**
* Upsert a record in the 'sessionStore' table
*
* @param {import("@compas/store").Postgres} sql
* @param {import("../common/types.js").StoreSessionStoreInsert["insert"]} insert
* @returns {Promise<Array<import("../common/types.js").StoreSessionStore>>}
*/
declare function sessionStoreUpsertOnId(sql: import("@compas/store").Postgres, insert: import("../common/types.js").StoreSessionStoreInsert["insert"]): Promise<Array<import("../common/types.js").StoreSessionStore>>;
export {};