ADBC
Arrow Database Connectivity
Loading...
Searching...
No Matches
adbc_driver_manager.h
Go to the documentation of this file.
1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements. See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership. The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License. You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied. See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
22
23#pragma once
24
25#include <arrow-adbc/adbc.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#ifndef ADBC_DRIVER_MANAGER_H
32#define ADBC_DRIVER_MANAGER_H
33
49ADBC_EXPORT
50AdbcStatusCode AdbcLoadDriver(const char* driver_name, const char* entrypoint,
51 int version, void* driver, struct AdbcError* error);
52
65ADBC_EXPORT
67 void* driver, struct AdbcError* error);
68
76ADBC_EXPORT
78 AdbcDriverInitFunc init_func,
79 struct AdbcError* error);
80
82ADBC_EXPORT
84
85#endif // ADBC_DRIVER_MANAGER_H
86
87#ifdef __cplusplus
88}
89#endif
const char * AdbcStatusCodeMessage(AdbcStatusCode code)
Get a human-friendly description of a status code.
AdbcStatusCode AdbcLoadDriverFromInitFunc(AdbcDriverInitFunc init_func, int version, void *driver, struct AdbcError *error)
Common entry point for drivers via the driver manager.
AdbcStatusCode AdbcLoadDriver(const char *driver_name, const char *entrypoint, int version, void *driver, struct AdbcError *error)
Common entry point for drivers via the driver manager.
AdbcStatusCode AdbcDriverManagerDatabaseSetInitFunc(struct AdbcDatabase *database, AdbcDriverInitFunc init_func, struct AdbcError *error)
Set the AdbcDriverInitFunc to use.
An instance of a database.
Definition adbc.h:808
AdbcStatusCode(* AdbcDriverInitFunc)(int version, void *driver, struct AdbcError *error)
Common entry point for drivers via the driver manager (which uses dlopen(3)/LoadLibrary)....
Definition adbc.h:2347
uint8_t AdbcStatusCode
Error codes for operations that may fail.
Definition adbc.h:176
A detailed error message for an operation.
Definition adbc.h:269