UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

31 lines • 1.26 kB
import { Config } from "../config"; import { Components } from "../core/components"; import { Logger } from "../core/logger"; import { Validator } from "../core/validator"; import Database from "../database"; import { Trx } from "./trx"; import type * as types from "../types"; export declare class OptionsTrx extends Trx { private database; private logger; private components; private config; private validator; constructor(database: Database, logger: Logger, components: Components, config: Config, validator: Validator); update(key: types.DefaultOptionNames, value: any, autoload?: "yes" | "no"): Promise<boolean>; update(key: string, value: string, autoload?: "yes" | "no"): Promise<boolean>; insert(key: types.DefaultOptionNames, value: string | number | object | boolean, options?: { autoload?: "yes" | "no"; upsert?: boolean; seriazlie?: boolean; force?: boolean; }): Promise<number>; insert(key: string, value: string | number | object | boolean, options?: { autoload?: "yes" | "no"; upsert?: boolean; seriazlie?: boolean; force?: boolean; }): Promise<number>; remove(key: string): Promise<void>; } //# sourceMappingURL=options.trx.d.ts.map