GDAL

Typedefs | Functions
gdal_adbc.h File Reference

C GDAL entry points for Arrow Database Connectivity (ADBC) More...

`#include "cpl_port.h"`
`#include <stdint.h>`

Go to the source code of this file.

## Typedefs
typedef uint8_t(* | GDALAdbcLoadDriverFunc) (const char *driver_name, const char *entrypoint, int version, void *driver, void *error)
| Type of a callback function to load a ADBC driver.

## Functions
void | GDALSetAdbcLoadDriverOverride (GDALAdbcLoadDriverFunc init_func)
| When set, it is used by the OGR ADBC driver to populate AdbcDriver callbacks.
GDALAdbcLoadDriverFunc | GDALGetAdbcLoadDriverOverride (void)
| Gets the ADBC driver load function.

## Detailed Description

C GDAL entry points for Arrow Database Connectivity (ADBC)

These functions provide an opportunity to override the mechanism that locates and loads ADBC drivers, or provide one if GDAL was not built with ADBC driver manager support.

Since
  GDAL 3.11

## Function Documentation

## ◆ GDALGetAdbcLoadDriverOverride()

GDALAdbcLoadDriverFunc GDALGetAdbcLoadDriverOverride | ( | void |  | ) |

Gets the ADBC driver load function.

This will be NULL if an explicit override was not specified.

## ◆ GDALSetAdbcLoadDriverOverride()

void GDALSetAdbcLoadDriverOverride | ( | GDALAdbcLoadDriverFunc | init_func | ) |

When set, it is used by the OGR ADBC driver to populate AdbcDriver callbacks.

This provides an embedding application the opportunity to locate an up-to-date version of a driver or to bundle a driver not available at the system level.

Setting it to NULL resets to the the default behavior of the ADBC driver, which is use AdbcLoadDriver() from arrow-adbc/adbc_driver_manager.h or to error if the OGR ADBC driver was not built against a system driver manager.