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

5.0.1 • Public • Published

Installation

npm install --save @types/mysql-import

Summary

This package contains type definitions for mysql-import (https://github.com/pamblam/mysql-import#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mysql-import.

index.d.ts

import { ConnectionOptions } from "mysql2";

export default class Importer {
    constructor(settings: ConnectionOptions);

    getImported(): Array<{ file: string; size: number }>;
    setEncoding(encoding: "utf8" | "ucs2" | "utf16le" | "latin1" | "ascii" | "base64" | "hex"): void;
    use(database: string): Promise<void>;
    onProgress(
        cb: (object: {
            total_files: number;
            file_no: number;
            bytes_processed: number;
            total_bytes: number;
            file_path: string;
        }) => void,
    ): void;
    onDumpComplete(
        cb: (object: {
            total_files: number;
            file_no: number;
            file_path: string;
            error: Error | null;
        }) => void,
    ): void;
    import(...input: ReadonlyArray<string | readonly string[]>): Promise<void>;
    disconnect(graceful?: boolean): Promise<void>;
}

Additional Details

  • Last updated: Mon, 29 Jan 2024 22:06:49 GMT
  • Dependencies: mysql2

Credits

These definitions were written by Ben Grynhaus, and Chiaki Abe.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.00ts2.0
2.0.00ts2.1
2.0.00ts2.2
2.0.00ts2.3
2.0.00ts2.4
2.0.00ts2.5
2.0.00ts2.6
2.0.00ts2.7
2.0.00ts2.8
2.0.00ts2.9
2.0.00ts3.0
2.0.00ts3.1
2.0.00ts3.2
2.0.00ts3.3
2.0.00ts3.4
2.0.00ts3.5
5.0.1584ts5.8
5.0.1584ts5.7
5.0.1584latest
5.0.1584ts4.6
5.0.1584ts4.7
5.0.1584ts4.8
5.0.1584ts4.9
5.0.1584ts5.0
5.0.1584ts5.1
5.0.1584ts5.2
5.0.1584ts5.3
5.0.1584ts5.4
5.0.1584ts5.5
5.0.1584ts5.6
5.0.1584ts5.9
2.0.3178ts4.5
2.0.17ts3.6
2.0.17ts3.7
2.0.17ts3.8
2.0.17ts3.9
2.0.17ts4.0
2.0.17ts4.1
2.0.17ts4.2
2.0.17ts4.3
2.0.17ts4.4

Version History

VersionDownloads (Last 7 Days)Published
5.0.1584
5.0.00
2.0.3178
2.0.20
2.0.17
2.0.00

Package Sidebar

Install

npm i @types/mysql-import

Weekly Downloads

720

Version

5.0.1

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • types