@earth-app/collegedb
    Preparing search index...

    Function createPostgreSQLProvider

    • Creates a PostgreSQL adapter implementing CollegeDB's SQL contract.

      Supports pg Client, Pool, and compatible implementations. SQL using ? placeholders is automatically rewritten to $1..$n.

      For Drizzle-backed PostgreSQL clients, pass the Drizzle DB instance as client and the Drizzle sql helper as the second argument.

      Parameters

      Returns SQLDatabase

      SQLDatabase-compatible adapter

    • Creates a PostgreSQL adapter implementing CollegeDB's SQL contract.

      Supports pg Client, Pool, and compatible implementations. SQL using ? placeholders is automatically rewritten to $1..$n.

      For Drizzle-backed PostgreSQL clients, pass the Drizzle DB instance as client and the Drizzle sql helper as the second argument.

      Parameters

      Returns SQLDatabase

      SQLDatabase-compatible adapter