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

    Function createMySQLProvider

    • Creates a MySQL/MariaDB adapter implementing CollegeDB's SQL contract.

      Supports mysql2/promise clients, pools, and compatible wrappers.

      For Drizzle-backed MySQL/MariaDB 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 MySQL/MariaDB adapter implementing CollegeDB's SQL contract.

      Supports mysql2/promise clients, pools, and compatible wrappers.

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

      Parameters

      Returns SQLDatabase

      SQLDatabase-compatible adapter