@types/knex-cleaner
TypeScript icon, indicating that this package has built-in type declarations

1.3.6 • Public • Published

Installation

npm install --save @types/knex-cleaner

Summary

This package contains type definitions for knex-cleaner (https://github.com/steven-ferguson/knex-cleaner).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knex-cleaner.

index.d.ts

import { Knex } from "knex";

export interface KnexCleanerOptions {
    /**
     * Choose between simply deleting all rows from table or truncating it completely. Default is 'truncate'
     */
    mode?: "truncate" | "delete" | undefined;

    /**
     * Used to tell PostgresSQL to reset the ID counter, default is true
     */
    restartIdentity?: boolean | undefined;

    /**
     * List of tables to ignore. Empty array by default.
     */
    ignoreTables?: string[] | undefined;
}

export function clean(knex: Knex, options?: KnexCleanerOptions): Promise<void>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/node, knex

Credits

These definitions were written by Karol Goraus.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/knex-cleaner

Weekly Downloads

3,093

Version

1.3.6

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • types