
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@types/db-migrate-pg
Advanced tools
TypeScript definitions for db-migrate-pg
npm install --save @types/db-migrate-pg
This package contains type definitions for db-migrate-pg (https://github.com/db-migrate/pg).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/db-migrate-pg.
import * as pg from "pg";
import DbMigrateBase = require("db-migrate-base");
import * as Promise from "bluebird";
// Yes, this is a dummy interface for now; the current implementation of the pg driver doesn't need any options.
export interface CreateDatabaseOptions {}
export interface DropDatabaseOptions {
ifExists?: boolean | undefined;
}
export interface CreateSequenceOptions {
temp?: boolean | undefined;
}
export interface SwitchDatabaseOptions {
database?: string | undefined;
}
export interface DropSequenceOptions {
ifExists?: boolean | undefined;
cascade?: boolean | undefined;
restrict?: boolean | undefined;
}
export interface ColumnConstraint {
foreignKey: (callback: DbMigrateBase.CallbackFunction) => void;
constraints: string;
}
export interface ColumnConstraintOptions {
emitPrimaryKey?: boolean | undefined;
}
export class PgDriver extends DbMigrateBase {
constructor(connection: pg.Client, schema: string, intern: DbMigrateBase.InternalOptions);
createDatabase(
dbName: string,
optionsOrCb: CreateDatabaseOptions | DbMigrateBase.CallbackFunction,
callback?: DbMigrateBase.CallbackFunction,
): void;
dropDatabase(
dbName: string,
optionsOrCb: DropDatabaseOptions | DbMigrateBase.CallbackFunction,
callback?: DbMigrateBase.CallbackFunction,
): void;
createSequence(
sqName: string,
optionsOrCb: CreateSequenceOptions | DbMigrateBase.CallbackFunction,
callback?: DbMigrateBase.CallbackFunction,
): void;
switchDatabase(options: string | SwitchDatabaseOptions, callback: DbMigrateBase.CallbackFunction): void;
dropSequence(
dbName: string,
optionsOrCb: DropSequenceOptions | DbMigrateBase.CallbackFunction,
callback?: DbMigrateBase.CallbackFunction,
): void;
createColumnConstraint(
spec: DbMigrateBase.ColumnSpec,
options: ColumnConstraintOptions,
tableName: string,
columnName: string,
): ColumnConstraint;
createDatabaseAsync(dbName: string, options?: CreateDatabaseOptions): Promise<any>;
dropDatabaseAsync(dbName: string, options?: DropDatabaseOptions): Promise<any>;
createSequenceAsync(sqName: string, options?: CreateSequenceOptions): Promise<any>;
switchDatabaseAsync(options: string | SwitchDatabaseOptions): Promise<any>;
dropSequenceAsync(dbName: string, options?: DropSequenceOptions): Promise<any>;
}
These definitions were written by nickiannone.
FAQs
TypeScript definitions for db-migrate-pg
The npm package @types/db-migrate-pg receives a total of 0 weekly downloads. As such, @types/db-migrate-pg popularity was classified as not popular.
We found that @types/db-migrate-pg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.