ADBC
Arrow Database Connectivity
|
The CRTP base implementation of an AdbcDatabase. More...
#include <database.h>
Public Types | |
using | Base = Database<Derived> |
Public Types inherited from adbc::driver::BaseDatabase< Derived > | |
using | Base = BaseDatabase<Derived> |
Public Member Functions | |
virtual Status | InitImpl () |
Initialize the database. | |
virtual Status | ReleaseImpl () |
Release the database. | |
virtual Status | SetOptionImpl (std::string_view key, Option value) |
Set an option. May be called prior to InitImpl. | |
Public Member Functions inherited from adbc::driver::BaseDatabase< Derived > | |
AdbcStatusCode | Init (void *parent, AdbcError *error) override |
Initialize the object. | |
AdbcStatusCode | Release (AdbcError *error) override |
Finalize the object. | |
AdbcStatusCode | SetOption (std::string_view key, Option value, AdbcError *error) override |
Set an option value. | |
Public Member Functions inherited from adbc::driver::ObjectBase | |
virtual Result< Option > | GetOption (std::string_view key) |
Get an option value. | |
Private Member Functions | |
Derived & | impl () |
Additional Inherited Members | |
Protected Attributes inherited from adbc::driver::ObjectBase | |
LifecycleState | lifecycle_state_ |
The CRTP base implementation of an AdbcDatabase.
Derived should override and implement the Impl methods, but not others. Overridden methods should defer to the superclass version at the end. (The Base typedef is provided to make this easier.) Derived should also define a constexpr static symbol called kErrorPrefix that is used to construct error messages.
|
inlinevirtual |
Initialize the database.
Reimplemented from adbc::driver::BaseDatabase< Derived >.
|
inlinevirtual |
Release the database.
Reimplemented from adbc::driver::BaseDatabase< Derived >.
|
inlinevirtual |
Set an option. May be called prior to InitImpl.
Reimplemented from adbc::driver::BaseDatabase< Derived >.