Files
bun-mariadb/dist/lib/queue/queue-push.d.ts
T

22 lines
611 B
TypeScript

import type { BunMariaDBConfig, DBResponseObject } from "../../types";
type Params<Schema extends {
[k: string]: any;
} = {
[k: string]: any;
}, Table extends string = string> = {
table: Table;
data: Schema[];
/** Wait this long before the jobs can be claimed */
delay_ms?: number;
config?: BunMariaDBConfig;
};
/**
* Add jobs to a queue table.
*/
export default function QueuePush<Schema extends {
[k: string]: any;
} = {
[k: string]: any;
}, Table extends string = string>({ table, data, delay_ms, config, }: Params<Schema, Table>): Promise<DBResponseObject>;
export {};