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

    The pool seam mysqlStore rides, declared structurally: the seam is a shape, not a name, so mysqlStore accepts any pool with these three members — the mysql2 pool createMysqlPool builds, or the mariadb pool createMariadbPool builds here. 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]>;
    }
    Index
    • Parameters

      • sql: string
      • Optionalparams: readonly unknown[]

      Returns Promise<[unknown, unknown]>