Interface PostgresObject

interface PostgresObject {
    clear(): void;
    create(id?, options?): Promise<PostgresInstance>;
    delete(id): void;
    forEach(cb): void;
    get(id): undefined | PostgresInstance;
    has(id): boolean;
    ids(): string[];
    instances(): PostgresInstance[];
    stop(id): Promise<void>;
    stopAll(): Promise<void>;
}

Methods

  • Clear all postgres instances exist.

    Returns void

  • Delete a postgres instance.

    Parameters

    • id: string

      instance id.

    Returns void

  • Loop through all the postgres instances.

    Parameters

    • cb: ((instance, id, postgres) => void)

    Returns void

  • Check if a postgres instance exist.

    Parameters

    • id: string

      instance id.

    Returns boolean

  • Get all the postgres instances id.

    Returns string[]

  • Stop a postgres instance.

    Parameters

    • id: string

      instance id.

    Returns Promise<void>

  • Stop all postgres instances.

    Returns Promise<void>

Generated using TypeDoc