mysql-all-in-one
Version:
A package that allows you to have a complete interaction with a MYSQL database, allowing to connect to the database, retrieve data and create queries.
33 lines (32 loc) • 843 B
TypeScript
import { SelectOrder } from '../select/order/type';
export declare const defaultDeleteOptions: DeleteOptions;
export interface DeleteOptions {
/**
* @description Adds IGNORE modifier if true.
* @default false
*/
ignore?: boolean;
/**
* @description Adds QUICK modifier if true.
* @default false
*/
quick?: boolean;
/**
* @description Adds LIMIT modifier corresponding to the number.
* @default null
*/
limit?: number;
/**
* @description Adds ORDER BY modifier if true
*/
order?: SelectOrder;
/**
* @description Returns a PreparedStament object if true
* @default false
* @example ({
* statement: DELETE FROM `table` WHERE id = ? OR name LIKE ?",
* values: [3, "John"]
* })
*/
returnPreparedStatement?: boolean;
}