@pwngh/economy-lab
    Preparing search index...

    Interface MysqlPool

    The pool seam the store rides, structurally matching mysql2/promise's pool. Declared by hand so mysql2 stays an optional dependency, and satisfied by any pool with these members: the pool createMysqlPool builds, or the pipelining mariadb pool from @pwngh/economy-lab/engines/mysql-mariadb, which mysqlStore rides unchanged. query resolves a tuple whose first slot holds rows for a SELECT or an affected-rows header for a write.

    interface MysqlPool {
        end(): Promise<void>;
        getConnection(): Promise<MysqlConnection>;
        query(
            sql: string,
            params?: readonly unknown[],
        ): Promise<[unknown, unknown]>;
    }

    Hierarchy

    • MysqlExecutor
      • MysqlPool
    Index
    • Parameters

      • sql: string
      • Optionalparams: readonly unknown[]

      Returns Promise<[unknown, unknown]>