1.3.6 • Published 2 years ago

@types/knex-cleaner v1.3.6

Weekly downloads
793
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for knex-cleaner 1.3
// Project: https://github.com/steven-ferguson/knex-cleaner
// Definitions by: Karol Goraus <https://github.com/Szarlus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 4.1
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, 27 Jul 2021 20:31:22 GMT
  • Dependencies: @types/knex
  • Global values: none

Credits

These definitions were written by Karol Goraus.

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

3 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

5 years ago