Updated on 2024-05-07 GMT+08:00

APIs

You can use standard database APIs, such as ODBC and JDBC, to develop GaussDB-based applications.

Supported APIs

Each application is an independent GaussDB development project. APIs alleviate applications from directly operating in databases, and enhance the database portability, extensibility, and maintainability. Table 1 lists the APIs supported by GaussDB and the download addresses.

Table 1 Database APIs

API

How to Obtain

ODBC

  • Linux:

    Driver: GaussDB-Kernel_Database version number_OS version number_64bit_Odbc.tar.gz

    unixODBC source code package: https://gitee.com/src-openeuler/unixODBC/blob/openEuler-22.03-LTS-SP1/unixODBC-2.3.7.tar.gz

  • Windows:

    Driver: GaussDB-Kernel_Database version number_Windows_Odbc.tar.gz

JDBC

  • Driver: GaussDB-Kernel_Database version number_OS version number_64bit_Jdbc.tar.gz
  • Driver: org.postgresql.Driver

The JDBC and ODBC APIs are used to connect to the database remotely. Therefore, you need to configure a remote connection in GaussDB. Contact the administrator for related operations.

For details about more APIs, see Application Development Guide.