Skip to content

firebird.driver.fbapi

This module contains low-level ctypes interface to Firebird client library (fbclient.so/dll).

Constants

Type codes

- SQL_TEXT
- SQL_VARYING
- SQL_SHORT
- SQL_LONG
- SQL_FLOAT
- SQL_DOUBLE
- SQL_D_FLOAT
- SQL_TIMESTAMP
- SQL_BLOB
- SQL_ARRAY
- SQL_QUAD
- SQL_TYPE_TIME
- SQL_TYPE_DATE
- SQL_INT64
- SQL_BOOLEAN
- SQL_NULL
- SUBTYPE_NUMERIC
- SUBTYPE_DECIMAL

Internal type codes (for example used by ARRAY descriptor)

- blr_text
- blr_text2
- blr_short
- blr_long
- blr_quad
- blr_float
- blr_double
- blr_d_float
- blr_timestamp
- blr_varying
- blr_varying2
- blr_blob
- blr_cstring
- blr_cstring2
- blr_blob_id
- blr_sql_date
- blr_sql_time
- blr_int64
- blr_blob2
- blr_domain_name
- blr_domain_name2
- blr_not_nullable
- blr_column_name
- blr_column_name2
- blr_bool
- blr_dec64
- blr_dec128
- blr_dec_fixed
- blr_sql_time_tz
- blr_timestamp_tz
- blr_ex_time_tz
- blr_ex_timestamp_tz

Types

firebird.driver.fbapi.Int module-attribute

firebird.driver.fbapi.IntPtr module-attribute

firebird.driver.fbapi.Int64 module-attribute

firebird.driver.fbapi.Int64Ptr module-attribute

firebird.driver.fbapi.QWord module-attribute

firebird.driver.fbapi.STRING module-attribute

firebird.driver.fbapi.ISC_LONG module-attribute

firebird.driver.fbapi.ISC_LONG_PTR module-attribute

firebird.driver.fbapi.ISC_ULONG module-attribute

firebird.driver.fbapi.ISC_SHORT module-attribute

firebird.driver.fbapi.ISC_USHORT module-attribute

firebird.driver.fbapi.ISC_UCHAR module-attribute

firebird.driver.fbapi.ISC_INT64 module-attribute

firebird.driver.fbapi.ISC_UINT64 module-attribute

firebird.driver.fbapi.ISC_DATE module-attribute

firebird.driver.fbapi.ISC_TIME module-attribute

firebird.driver.fbapi.FB_DEC16 module-attribute

firebird.driver.fbapi.FB_DEC16Ptr module-attribute

firebird.driver.fbapi.FB_DEC34 module-attribute

firebird.driver.fbapi.FB_DEC34Ptr module-attribute

firebird.driver.fbapi.FB_I128 module-attribute

firebird.driver.fbapi.FB_I128Ptr module-attribute

firebird.driver.fbapi.ISC_QUAD

ISC_QUAD

Source code in firebird/driver/fbapi.py
class ISC_QUAD(Structure):
    "ISC_QUAD"
    _fields_: ClassVar = [('high', ISC_LONG), ('low', ISC_ULONG)]

firebird.driver.fbapi.ISC_QUAD_PTR module-attribute

firebird.driver.fbapi.FB_API_HANDLE module-attribute

firebird.driver.fbapi.FB_API_HANDLE_PTR module-attribute

firebird.driver.fbapi.ISC_STATUS module-attribute

firebird.driver.fbapi.ISC_STATUS_PTR module-attribute

firebird.driver.fbapi.ISC_STATUS_ARRAY module-attribute

firebird.driver.fbapi.ISC_STATUS_ARRAY_PTR module-attribute

firebird.driver.fbapi.ISC_ARRAY_BOUND

ISC_ARRAY_BOUND

Source code in firebird/driver/fbapi.py
class ISC_ARRAY_BOUND(Structure):
    "ISC_ARRAY_BOUND"
    _fields_: ClassVar = [('array_bound_lower', c_short), ('array_bound_upper', c_short)]

firebird.driver.fbapi.ISC_ARRAY_DESC

ISC_ARRAY_DESC

Source code in firebird/driver/fbapi.py
class ISC_ARRAY_DESC(Structure):
    "ISC_ARRAY_DESC"
    _fields_: ClassVar = [
        ('array_desc_dtype', c_ubyte),
        ('array_desc_scale', c_byte),  # was ISC_SCHAR),
        ('array_desc_length', c_ushort),
        ('array_desc_field_name', c_char * 32),
        ('array_desc_relation_name', c_char * 32),
        ('array_desc_dimensions', c_short),
        ('array_desc_flags', c_short),
        ('array_desc_bounds', ISC_ARRAY_BOUND * 16)]

firebird.driver.fbapi.ISC_ARRAY_DESC_PTR module-attribute

firebird.driver.fbapi.RESULT_VECTOR module-attribute

firebird.driver.fbapi.ISC_TIME_TZ

ISC_TIME_TZ

Source code in firebird/driver/fbapi.py
class ISC_TIME_TZ(Structure):
    "ISC_TIME_TZ"
    _fields_: ClassVar = [('utc_time', ISC_TIME), ('time_zone', ISC_USHORT)]

firebird.driver.fbapi.ISC_TIME_TZ_EX

ISC_TIME_TZ_EX

Source code in firebird/driver/fbapi.py
class ISC_TIME_TZ_EX(Structure):
    "ISC_TIME_TZ_EX"
    _fields_: ClassVar = [('utc_time', ISC_TIME), ('time_zone', ISC_USHORT), ('ext_offset', ISC_SHORT)]

firebird.driver.fbapi.ISC_TIMESTAMP

ISC_TIMESTAMP

Source code in firebird/driver/fbapi.py
class ISC_TIMESTAMP(Structure):
    "ISC_TIMESTAMP"
    _fields_: ClassVar = [('timestamp_date', ISC_DATE), ('timestamp_time', ISC_TIME)]

firebird.driver.fbapi.ISC_TIMESTAMP_TZ

ISC_TIMESTAMP_TZ

Source code in firebird/driver/fbapi.py
class ISC_TIMESTAMP_TZ(Structure):
    "ISC_TIMESTAMP_TZ"
    _fields_: ClassVar = [('utc_timestamp', ISC_TIMESTAMP), ('time_zone', ISC_USHORT)]

firebird.driver.fbapi.ISC_TIMESTAMP_TZ_EX

ISC_TIMESTAMP_TZ_EX

Source code in firebird/driver/fbapi.py
class ISC_TIMESTAMP_TZ_EX(Structure):
    "ISC_TIMESTAMP_TZ_EX"
    _fields_: ClassVar = [('utc_timestamp', ISC_TIMESTAMP), ('time_zone', ISC_USHORT), ('ext_offset', ISC_SHORT)]

firebird.driver.fbapi.TraceCounts

Trace counters for table

Source code in firebird/driver/fbapi.py
class TraceCounts(Structure):
    "Trace counters for table"
    _fields_: ClassVar = [('relation_id', c_int), ('relation_name', c_char_p), ('counters', Int64Ptr)]

firebird.driver.fbapi.PerformanceInfo

Performance info

Source code in firebird/driver/fbapi.py
class PerformanceInfo(Structure):
    "Performance info"
    _fields_: ClassVar = [
        ('time', c_long),
        ('counters', Int64Ptr),
        ('count', c_uint),
        ('tables', TraceCountsPtr),
        ('records_fetched', c_long)]

Variables

firebird.driver.fbapi.err_encoding module-attribute

Encoding used to decode error messages from Firebird.

Functions

firebird.driver.fbapi.has_api() -> bool

Reaturns True if Firebird API is already loaded.

Source code in firebird/driver/fbapi.py
def has_api() -> bool:
    """Reaturns True if Firebird API is already loaded.
    """
    return api is not None

firebird.driver.fbapi.load_api(filename: str | Path | FirebirdProvider | None = None) -> None

Initializes bindings to Firebird Client Library unless they are already initialized. Called automatically by get_api().

Parameters:

Name Type Description Default
filename str | Path | FirebirdProvider | None

Client library filename or runtime provider. When omitted, the configured filename is used, or the driver locates a system client library.

None

A supplied provider sets FIREBIRD to its root before loading the client library if the variable is unset or resolves to a different directory.

Hooks

Event HookType.HOOK_API_LOADED: Executed after api is initialized. Hook routine must have signature: hook_func(api). Any value returned by hook is ignored.

Source code in firebird/driver/fbapi.py
def load_api(filename: str | Path | FirebirdProvider | None=None) -> None:
    """Initializes bindings to Firebird Client Library unless they are already initialized.
    Called automatically by `get_api()`.

    Args:
        filename: Client library filename or runtime provider. When omitted, the configured
            filename is used, or the driver locates a system client library.

    A supplied provider sets `FIREBIRD` to its root before loading the client library if
    the variable is unset or resolves to a different directory.

    Hooks:
        Event `HookType.HOOK_API_LOADED`: Executed after api is initialized.
        Hook routine must have signature: `hook_func(api)`. Any value returned by
        hook is ignored.
    """
    if not has_api():
        if filename is None:
            filename = driver_config.fb_client_library.value
        if isinstance(filename, str) and not filename:
            filename = None
        if filename is None or isinstance(filename, (str, Path)):
            filename = _DriverProvider(filename)
        _api = FirebirdAPI(provider=filename)
        setattr(sys.modules[__name__], 'api', _api) # noqa: B010
        try:
            for hook in get_callbacks(APIHook.LOADED, _api):
                hook(_api)
        except Exception:
            setattr(sys.modules[__name__], 'api', None) # noqa: B010
            raise

firebird.driver.fbapi.get_api() -> FirebirdAPI

Returns Firebird API. Loads the API if needed.

Source code in firebird/driver/fbapi.py
def get_api() -> FirebirdAPI:
    """Returns Firebird API. Loads the API if needed.
    """
    if not has_api():
        load_api()
    return api

Classes

firebird.driver.fbapi.FirebirdAPI

Firebird Client API interface object. Loads Firebird Client Library and exposes fb_get_master_interface(). Uses ctypes for bindings.

Parameters:

Name Type Description Default
filename FirebirdProvider | str | Path | None

Client library filename or runtime provider. When omitted, the driver locates a system client library.

None
provider FirebirdProvider | None

Runtime provider supplied by keyword, as an alternative to filename.

None

When a runtime provider is supplied, FIREBIRD is set to its root before loading the client library if the variable is unset or resolves to a different directory.

Attributes:

Name Type Description
provider `.FirebirdProvider`

Runtime provider used to load this API

client_library `ctypes.CDLL`

Loaded Firebird client library ctypes handler

client_library_name `~pathlib.Path`

Path to loaded Firebird client library

master iMaster

Firebird API IMaster interface

util iUtil

Firebird API IUtil interface

Methods:

Name Description
fb_get_master_interface

This function is used to obtain primary Firebird interface, required to access all the rest of interfaces. Has no parameters and always succeeds.

Returns: .iMaster

fb_get_database_handle

Helper function that returns database handle for specified IAttachment interface.

Arguments: status (ISC_STATUS_PTR): :ISC status db_handle (FB_API_HANDLE_PTR): database handle att (iAttachment): attachment

Returns: ISC_STATUS

fb_get_transaction_handle

Helper function that returns database handle for specified ITransaction interface.

Arguments: status (ISC_STATUS_PTR): ISC status tra_handle (FB_API_HANDLE_PTR): Transaction handle att (iTransaction): Transaction

Returns: ISC_STATUS

fb_interpret

Helper function that fills buffer with text for errors noted in ISC status.

Arguments: buffer (STRING): Buffer for message buf_size (int): Buffer size status_ptr: Pointer to ISC_STATUS_PTR

Returns: ISC_LONG

fb_sqlstate

Helper function that returns SQLSTATE for ISC_STATUS.

Arguments: status (ISC_STATUS_PTR): ISC status

Returns: STRING - 5 characters of SQLSTATE

isc_sqlcode

Helper function that returns SQLCODE for ISC_STATUS.

Arguments: status (ISC_STATUS_PTR): ISC status

Returns: ISC_LONG

isc_array_lookup_bounds

Old API function.

isc_array_put_slice

Old API function.

isc_array_get_slice

Old API function.

isc_que_events

Old API function.

isc_event_counts

Old API function.

isc_cancel_events

Old API function.

isc_compile_request

Old API function.

isc_start_request

Old API function.

isc_release_request

Old API function.

isc_receive

Old API function.

isc_start_and_send

Old API function.

isc_send

Old API function.

isc_open_blob2

Old API function.

isc_blob_info

Old API function.

isc_create_blob2

Old API function.

isc_get_segment

Old API function.

isc_put_segment

Old API function.

isc_close_blob

Old API function.

Source code in firebird/driver/fbapi.py
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
class FirebirdAPI:
    """Firebird Client API interface object. Loads Firebird Client Library and
    exposes `fb_get_master_interface()`. Uses [`ctypes`](https://docs.python.org/3/library/ctypes.html)
    for bindings.

    Arguments:
        filename: Client library filename or runtime provider. When omitted, the driver
            locates a system client library.
        provider: Runtime provider supplied by keyword, as an alternative to `filename`.

    When a runtime provider is supplied, `FIREBIRD` is set to its root before loading the
    client library if the variable is unset or resolves to a different directory.

    Attributes:
        provider (`.FirebirdProvider`): Runtime provider used to load this API
        client_library (`ctypes.CDLL`): Loaded Firebird client library `ctypes` handler
        client_library_name (`~pathlib.Path`): Path to loaded Firebird client library
        master (iMaster): Firebird API IMaster interface
        util (iUtil): Firebird API IUtil interface

    Methods:
        fb_get_master_interface():
            This function is used to obtain primary Firebird interface, required
            to access all the rest of interfaces. Has no parameters and always succeeds.

            Returns:
                `.iMaster`

        fb_get_database_handle():
            Helper function that returns database handle for specified IAttachment interface.

            Arguments:
                status (`ISC_STATUS_PTR`): :ISC status
                db_handle (`FB_API_HANDLE_PTR`): database handle
                att (iAttachment): attachment

            Returns:
                `ISC_STATUS`

        fb_get_transaction_handle():
            Helper function that returns database handle for specified ITransaction interface.

            Arguments:
                status (`ISC_STATUS_PTR`): ISC status
                tra_handle (`FB_API_HANDLE_PTR`): Transaction handle
                att (iTransaction): Transaction

            Returns:
                `ISC_STATUS`

        fb_interpret():
            Helper function that fills buffer with text for errors noted in ISC status.

            Arguments:
                buffer (`STRING`): Buffer for message
                buf_size (int): Buffer size
                status_ptr: Pointer to `ISC_STATUS_PTR`

            Returns:
                `ISC_LONG`

        fb_sqlstate():
            Helper function that returns SQLSTATE for ISC_STATUS.

            Arguments:
                status (`ISC_STATUS_PTR`): ISC status

            Returns:
                `STRING` - 5 characters of SQLSTATE

        isc_sqlcode():
            Helper function that returns SQLCODE for ISC_STATUS.

            Arguments:
                status (`ISC_STATUS_PTR`): ISC status

            Returns:
                `ISC_LONG`

        isc_array_lookup_bounds():
            Old API function.

        isc_array_put_slice():
            Old API function.

        isc_array_get_slice():
            Old API function.

        isc_que_events():
            Old API function.

        isc_event_counts():
            Old API function.

        isc_cancel_events():
            Old API function.

        isc_compile_request():
            Old API function.

        isc_start_request():
            Old API function.

        isc_release_request():
            Old API function.

        isc_receive():
            Old API function.

        isc_start_and_send():
            Old API function.

        isc_send():
            Old API function.

        isc_open_blob2():
            Old API function.

        isc_blob_info():
            Old API function.

        isc_create_blob2():
            Old API function.

        isc_get_segment():
            Old API function.

        isc_put_segment():
            Old API function.

        isc_close_blob():
            Old API function.

    """
    def __init__(self, filename: FirebirdProvider | str | Path | None=None,
                 *, provider: FirebirdProvider | None=None):
        decimal.getcontext().prec = 34
        if filename is not None and provider is not None:
            raise TypeError('Specify either filename or provider')
        selected = provider if provider is not None else filename
        self._provider = _DriverProvider(selected) if selected is None or isinstance(selected, (str, Path)) \
            else selected
        if not isinstance(self._provider, _DriverProvider):
            runtime_root = Path(self._provider.root)
            configured_root = os.environ.get('FIREBIRD')
            if not configured_root or Path(configured_root).resolve() != runtime_root.resolve():
                os.environ['FIREBIRD'] = str(runtime_root)
        filename = self._provider.client_library
        self.client_library: ctypes.CDLL = None
        "Firebird client library"
        if sys.platform in ('win32', 'cygwin', 'os2', 'os2emx'):
            self.client_library: ctypes.CDLL = ctypes.WinDLL(str(filename))
        else:
            self.client_library: ctypes.CDLL = ctypes.CDLL(str(filename), mode=ctypes.RTLD_GLOBAL)
        self.client_library_name: Path = Path(filename)
        "Firebird client library name"
        self.fb_get_master_interface = (self.client_library.fb_get_master_interface)
        "Firebird API"
        self.fb_get_master_interface.restype = IMaster
        self.fb_get_master_interface.argtypes = []
        self.fb_get_database_handle = self.client_library.fb_get_database_handle
        "Firebird API"
        self.fb_get_database_handle.restype = ISC_STATUS
        self.fb_get_database_handle.argtypes = [ISC_STATUS_PTR, FB_API_HANDLE_PTR, IAttachment]
        self.fb_get_transaction_handle = (self.client_library.fb_get_transaction_handle)
        "Firebird API"
        self.fb_get_transaction_handle.restype = ISC_STATUS
        self.fb_get_transaction_handle.argtypes = [ISC_STATUS_PTR, FB_API_HANDLE_PTR, ITransaction]
        self.fb_sqlstate = self.client_library.fb_sqlstate
        "Firebird API"
        self.fb_sqlstate.restype = None
        self.fb_sqlstate.argtypes = [STRING, ISC_STATUS_PTR]
        self.fb_shutdown_callback = self.client_library.fb_shutdown_callback
        "Firebird API"
        self.fb_shutdown_callback.restype = ISC_STATUS
        self.fb_shutdown_callback.argtypes = [ISC_STATUS_PTR,
                                              FB_SHUTDOWN_CALLBACK,
                                              c_int,
                                              c_void_p]
        self.isc_sqlcode = self.client_library.isc_sqlcode
        "Firebird API"
        self.isc_sqlcode.restype = ISC_LONG
        self.isc_sqlcode.argtypes = [ISC_STATUS_PTR]
        self.fb_interpret = self.client_library.fb_interpret
        "Firebird API"
        self.fb_interpret.restype = ISC_LONG
        self.fb_interpret.argtypes = [STRING, c_uint, POINTER(ISC_STATUS_PTR)]
        self.isc_array_lookup_bounds = (self.client_library.isc_array_lookup_bounds)
        "Firebird API"
        self.isc_array_lookup_bounds.restype = ISC_STATUS
        self.isc_array_lookup_bounds.argtypes = [ISC_STATUS_PTR, FB_API_HANDLE_PTR,
                                                 FB_API_HANDLE_PTR, STRING, STRING,
                                                 ISC_ARRAY_DESC_PTR]
        self.isc_array_put_slice = self.client_library.isc_array_put_slice
        "Firebird API"
        self.isc_array_put_slice.restype = ISC_STATUS
        self.isc_array_put_slice.argtypes = [ISC_STATUS_PTR, FB_API_HANDLE_PTR,
                                             FB_API_HANDLE_PTR, ISC_QUAD_PTR,
                                             ISC_ARRAY_DESC_PTR, c_void_p, ISC_LONG_PTR]
        self.isc_array_get_slice = self.client_library.isc_array_get_slice
        "Firebird API"
        self.isc_array_get_slice.restype = ISC_STATUS
        self.isc_array_get_slice.argtypes = [ISC_STATUS_PTR, FB_API_HANDLE_PTR,
                                             FB_API_HANDLE_PTR, ISC_QUAD_PTR,
                                             ISC_ARRAY_DESC_PTR, c_void_p, ISC_LONG_PTR]
        #
        self.P_isc_event_block = CFUNCTYPE(ISC_LONG, POINTER(POINTER(ISC_UCHAR)),
                                           POINTER(POINTER(ISC_UCHAR)), ISC_USHORT)
        # C_isc_event_block(ISC_LONG, POINTER(POINTER(ISC_UCHAR)), POINTER(POINTER(ISC_UCHAR)), ISC_USHORT)
        self.C_isc_event_block = self.P_isc_event_block(('isc_event_block', self.client_library))
        self.P_isc_event_block_args = self.C_isc_event_block.argtypes
        self.isc_que_events = self.client_library.isc_que_events
        "Firebird API"
        self.isc_que_events.restype = ISC_STATUS
        self.isc_que_events.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                        POINTER(ISC_LONG), c_short, POINTER(ISC_UCHAR),
                                        ISC_EVENT_CALLBACK, POINTER(ISC_UCHAR)]
        self.isc_event_counts = self.client_library.isc_event_counts
        "Firebird API"
        self.isc_event_counts.restype = None
        self.isc_event_counts.argtypes = [POINTER(RESULT_VECTOR), c_short,
                                          POINTER(ISC_UCHAR), POINTER(ISC_UCHAR)]
        self.isc_cancel_events = self.client_library.isc_cancel_events
        "Firebird API"
        self.isc_cancel_events.restype = ISC_STATUS
        self.isc_cancel_events.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                           POINTER(ISC_LONG)]
        self.isc_compile_request = self.client_library.isc_compile_request
        "Firebird API"
        self.isc_compile_request.restype = ISC_STATUS
        self.isc_compile_request.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                             POINTER(FB_API_HANDLE), c_short, STRING]
        self.isc_start_request = self.client_library.isc_start_request
        "Firebird API"
        self.isc_start_request.restype = ISC_STATUS
        self.isc_start_request.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                           POINTER(FB_API_HANDLE), c_short]
        self.isc_release_request = self.client_library.isc_release_request
        "Firebird API"
        self.isc_release_request.restype = ISC_STATUS
        self.isc_release_request.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE)]
        self.isc_receive = self.client_library.isc_receive
        "Firebird API"
        self.isc_receive.restype = ISC_STATUS
        self.isc_receive.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                     c_short, c_short, c_void_p, c_short]
        self.isc_start_and_send = self.client_library.isc_start_and_send
        "Firebird API"
        self.isc_start_and_send.restype = ISC_STATUS
        self.isc_start_and_send.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                            POINTER(FB_API_HANDLE), c_short, c_short,
                                            c_void_p, c_short]
        self.isc_send = self.client_library.isc_send
        "Firebird API"
        self.isc_send.restype = ISC_STATUS
        self.isc_send.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                  c_short, c_short, c_void_p, c_short]
        self.isc_open_blob2 = self.client_library.isc_open_blob2
        "Firebird API"
        self.isc_open_blob2.restype = ISC_STATUS
        self.isc_open_blob2.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                        POINTER(FB_API_HANDLE), POINTER(FB_API_HANDLE),
                                        POINTER(ISC_QUAD), ISC_USHORT, STRING] # POINTER(ISC_UCHAR)
        self.isc_blob_info = self.client_library.isc_blob_info
        "Firebird API"
        self.isc_blob_info.restype = ISC_STATUS
        self.isc_blob_info.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                       c_short, STRING, c_short, POINTER(c_char)]
        self.isc_create_blob2 = self.client_library.isc_create_blob2
        "Firebird API"
        self.isc_create_blob2.restype = ISC_STATUS
        self.isc_create_blob2.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                          POINTER(FB_API_HANDLE), POINTER(FB_API_HANDLE),
                                          POINTER(ISC_QUAD), c_short, STRING]
        self.isc_get_segment = self.client_library.isc_get_segment
        "Firebird API"
        self.isc_get_segment.restype = ISC_STATUS
        self.isc_get_segment.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                         POINTER(c_ushort), c_ushort, c_void_p]
        self.isc_put_segment = self.client_library.isc_put_segment
        "Firebird API"
        self.isc_put_segment.restype = ISC_STATUS
        self.isc_put_segment.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE),
                                         c_ushort, c_void_p]
        self.isc_close_blob = self.client_library.isc_close_blob
        "Firebird API"
        self.isc_close_blob.restype = ISC_STATUS
        self.isc_close_blob.argtypes = [POINTER(ISC_STATUS), POINTER(FB_API_HANDLE)]
        # Next netributes are set in types by API_LOADED hook
        self.master = None
        self.util = None

    @property
    def provider(self) -> FirebirdProvider:
        """Runtime provider used by this API, available after initialization."""
        if isinstance(self._provider, _DriverProvider) and self._provider._root is None:
            raise RuntimeError('Provider metadata is not initialized')
        return self._provider

    def _initialize_provider(self) -> None:
        """Complete metadata for the driver's own runtime provider."""
        if isinstance(self._provider, _DriverProvider):
            root = self.master.get_config_manager().get_root_directory()
            self._provider._initialize(root, self.util.get_client_version())

    def isc_event_block(self, event_buffer: bytes, result_buffer: bytes, *args) -> int:
        """Convenience wrapper for isc_event_block() API function. Injects variable
        number of parameters into `C_isc_event_block` call.
        """
        if len(args) > 15: # noqa: PLR2004
            raise ValueError("isc_event_block takes no more than 15 event names")
        newargs = list(self.P_isc_event_block_args)
        newargs.extend(STRING for x in args)
        self.C_isc_event_block.argtypes = newargs
        return self.C_isc_event_block(event_buffer, result_buffer, len(args), *args)

client_library: ctypes.CDLL instance-attribute

Firebird client library

client_library_name: Path instance-attribute

Firebird client library name

fb_get_database_handle instance-attribute

Firebird API

fb_get_master_interface instance-attribute

Firebird API

fb_get_transaction_handle instance-attribute

Firebird API

fb_interpret instance-attribute

Firebird API

fb_shutdown_callback instance-attribute

Firebird API

fb_sqlstate instance-attribute

Firebird API

isc_array_get_slice instance-attribute

Firebird API

isc_array_lookup_bounds instance-attribute

Firebird API

isc_array_put_slice instance-attribute

Firebird API

isc_blob_info instance-attribute

Firebird API

isc_cancel_events instance-attribute

Firebird API

isc_close_blob instance-attribute

Firebird API

isc_compile_request instance-attribute

Firebird API

isc_create_blob2 instance-attribute

Firebird API

isc_event_counts instance-attribute

Firebird API

isc_get_segment instance-attribute

Firebird API

isc_open_blob2 instance-attribute

Firebird API

isc_put_segment instance-attribute

Firebird API

isc_que_events instance-attribute

Firebird API

isc_receive instance-attribute

Firebird API

isc_release_request instance-attribute

Firebird API

isc_send instance-attribute

Firebird API

isc_sqlcode instance-attribute

Firebird API

isc_start_and_send instance-attribute

Firebird API

isc_start_request instance-attribute

Firebird API

provider: FirebirdProvider property

Runtime provider used by this API, available after initialization.

isc_event_block(event_buffer: bytes, result_buffer: bytes, *args) -> int

Convenience wrapper for isc_event_block() API function. Injects variable number of parameters into C_isc_event_block call.

Source code in firebird/driver/fbapi.py
def isc_event_block(self, event_buffer: bytes, result_buffer: bytes, *args) -> int:
    """Convenience wrapper for isc_event_block() API function. Injects variable
    number of parameters into `C_isc_event_block` call.
    """
    if len(args) > 15: # noqa: PLR2004
        raise ValueError("isc_event_block takes no more than 15 event names")
    newargs = list(self.P_isc_event_block_args)
    newargs.extend(STRING for x in args)
    self.C_isc_event_block.argtypes = newargs
    return self.C_isc_event_block(event_buffer, result_buffer, len(args), *args)

Firebird API Interface definitions

firebird.driver.fbapi.IVersioned_VTable

Interface virtual method table

Source code in firebird/driver/fbapi.py
class IVersioned_VTable(Structure):
    "Interface virtual method table"

firebird.driver.fbapi.IVersioned_struct

Fiebird Interface data structure

Source code in firebird/driver/fbapi.py
class IVersioned_struct(Structure):
    "Fiebird Interface data structure"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IVersioned_VTablePtr)]

firebird.driver.fbapi.IReferenceCounted_VTable

IReferenceCounted virtual method table

Source code in firebird/driver/fbapi.py
class IReferenceCounted_VTable(Structure):
    "IReferenceCounted virtual method table"

firebird.driver.fbapi.IReferenceCounted_struct

IReferenceCounted data structure

Source code in firebird/driver/fbapi.py
class IReferenceCounted_struct(Structure):
    "IReferenceCounted data structure"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IReferenceCounted_VTablePtr)]

firebird.driver.fbapi.IDisposable_VTable

IDisposable virtual method table

Source code in firebird/driver/fbapi.py
class IDisposable_VTable(Structure):
    "IDisposable virtual method table"

firebird.driver.fbapi.IDisposable_struct

IDisposable data structure

Source code in firebird/driver/fbapi.py
class IDisposable_struct(Structure):
    "IDisposable data structure"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IDisposable_VTablePtr)]

firebird.driver.fbapi.IStatus_VTable

IStatus VTable

Source code in firebird/driver/fbapi.py
class IStatus_VTable(Structure):
    "IStatus VTable"

firebird.driver.fbapi.IStatus_struct

IStatus interface

Source code in firebird/driver/fbapi.py
class IStatus_struct(Structure):
    "IStatus interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IStatus_VTablePtr)]

firebird.driver.fbapi.IMaster_VTable

IMaster virtual method table

Source code in firebird/driver/fbapi.py
class IMaster_VTable(Structure):
    "IMaster virtual method table"

firebird.driver.fbapi.IMaster_struct

IMaster interface

Source code in firebird/driver/fbapi.py
class IMaster_struct(Structure):
    "IMaster interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IMaster_VTablePtr)]

firebird.driver.fbapi.IPluginBase_VTable

IPluginBase virtual method table

Source code in firebird/driver/fbapi.py
class IPluginBase_VTable(Structure):
    "IPluginBase virtual method table"

firebird.driver.fbapi.IPluginBase_struct

IPluginBase interface

Source code in firebird/driver/fbapi.py
class IPluginBase_struct(Structure):
    "IPluginBase interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IPluginBase_VTablePtr)]

firebird.driver.fbapi.IPluginSet_VTable

IPluginSet virtual method table

Source code in firebird/driver/fbapi.py
class IPluginSet_VTable(Structure):
    "IPluginSet virtual method table"

firebird.driver.fbapi.IPluginSet_struct

IPluginSet interface

Source code in firebird/driver/fbapi.py
class IPluginSet_struct(Structure):
    "IPluginSet interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IPluginSet_VTablePtr)]

firebird.driver.fbapi.IConfigEntry_VTable

IConfigEntry virtual method table

Source code in firebird/driver/fbapi.py
class IConfigEntry_VTable(Structure):
    "IConfigEntry virtual method table"

firebird.driver.fbapi.IConfigEntry_struct

IConfigEntry interface

Source code in firebird/driver/fbapi.py
class IConfigEntry_struct(Structure):
    "IConfigEntry interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IConfigEntry_VTablePtr)]

firebird.driver.fbapi.IConfig_VTable

IConfig virtual method table

Source code in firebird/driver/fbapi.py
class IConfig_VTable(Structure):
    "IConfig virtual method table"

firebird.driver.fbapi.IConfig_struct

IConfig interface

Source code in firebird/driver/fbapi.py
class IConfig_struct(Structure):
    "IConfig interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IConfig_VTablePtr)]

firebird.driver.fbapi.IFirebirdConf_VTable

IFirebirdConf virtual method table

Source code in firebird/driver/fbapi.py
class IFirebirdConf_VTable(Structure):
    "IFirebirdConf virtual method table"

firebird.driver.fbapi.IFirebirdConf_struct

IFirebirdConf interface

Source code in firebird/driver/fbapi.py
class IFirebirdConf_struct(Structure):
    "IFirebirdConf interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IFirebirdConf_VTablePtr)]

firebird.driver.fbapi.IPluginManager_VTable

IPluginManager virtual method table

Source code in firebird/driver/fbapi.py
class IPluginManager_VTable(Structure):
    "IPluginManager virtual method table"

firebird.driver.fbapi.IPluginManager_struct

IPluginManager interface

Source code in firebird/driver/fbapi.py
class IPluginManager_struct(Structure):
    "IPluginManager interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IPluginManager_VTablePtr)]

firebird.driver.fbapi.IConfigManager_VTable

IConfigManager virtual method table

Source code in firebird/driver/fbapi.py
class IConfigManager_VTable(Structure):
    "IConfigManager virtual method table"

firebird.driver.fbapi.IConfigManager_struct

IConfigManager interface

Source code in firebird/driver/fbapi.py
class IConfigManager_struct(Structure):
    "IConfigManager interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IConfigManager_VTablePtr)]

firebird.driver.fbapi.IEventCallback_VTable

IEventCallback virtual method table

Source code in firebird/driver/fbapi.py
class IEventCallback_VTable(Structure):
    "IEventCallback virtual method table"

firebird.driver.fbapi.IEventCallback_struct

IEventCallback interface

Source code in firebird/driver/fbapi.py
class IEventCallback_struct(Structure):
    "IEventCallback interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IEventCallback_VTablePtr)]

firebird.driver.fbapi.IBlob_VTable

IBlob virtual method table

Source code in firebird/driver/fbapi.py
class IBlob_VTable(Structure):
    "IBlob virtual method table"

firebird.driver.fbapi.IBlob_struct

IBlob interface

Source code in firebird/driver/fbapi.py
class IBlob_struct(Structure):
    "IBlob interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IBlob_VTablePtr)]

firebird.driver.fbapi.ITransaction_VTable

ITransaction virtual method table

Source code in firebird/driver/fbapi.py
class ITransaction_VTable(Structure):
    "ITransaction virtual method table"

firebird.driver.fbapi.ITransaction_struct

ITransaction interface

Source code in firebird/driver/fbapi.py
class ITransaction_struct(Structure):
    "ITransaction interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', ITransaction_VTablePtr)]

firebird.driver.fbapi.IMessageMetadata_VTable

IMessageMetadata virtual method table

Source code in firebird/driver/fbapi.py
class IMessageMetadata_VTable(Structure):
    "IMessageMetadata virtual method table"

firebird.driver.fbapi.IMessageMetadata_struct

IMessageMetadata interface

Source code in firebird/driver/fbapi.py
class IMessageMetadata_struct(Structure):
    "IMessageMetadata interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IMessageMetadata_VTablePtr)]

firebird.driver.fbapi.IMetadataBuilder_VTable

IMetadataBuilder virtual method table

Source code in firebird/driver/fbapi.py
class IMetadataBuilder_VTable(Structure):
    "IMetadataBuilder virtual method table"

firebird.driver.fbapi.IMetadataBuilder_struct

IMetadataBuilder interface

Source code in firebird/driver/fbapi.py
class IMetadataBuilder_struct(Structure):
    "IMetadataBuilder interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IMetadataBuilder_VTablePtr)]

firebird.driver.fbapi.IResultSet_VTable

IResultSet virtual method table

Source code in firebird/driver/fbapi.py
class IResultSet_VTable(Structure):
    "IResultSet virtual method table"

firebird.driver.fbapi.IResultSet_struct

IResultSet interface

Source code in firebird/driver/fbapi.py
class IResultSet_struct(Structure):
    "IResultSet interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IResultSet_VTablePtr)]

firebird.driver.fbapi.IStatement_VTable

IStatement virtual method table

Source code in firebird/driver/fbapi.py
class IStatement_VTable(Structure):
    "IStatement virtual method table"

firebird.driver.fbapi.IStatement_struct

IStatement interface

Source code in firebird/driver/fbapi.py
class IStatement_struct(Structure):
    "IStatement interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IStatement_VTablePtr)]

firebird.driver.fbapi.IBatch_VTable

IBatch virtual method table

Source code in firebird/driver/fbapi.py
class IBatch_VTable(Structure):
    "IBatch virtual method table"

firebird.driver.fbapi.IBatch_struct

IBatch interface

Source code in firebird/driver/fbapi.py
class IBatch_struct(Structure):
    "IBatch interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IBatch_VTablePtr)]

firebird.driver.fbapi.IBatchCompletionState_VTable

IBatchCompletionState virtual method table

Source code in firebird/driver/fbapi.py
class IBatchCompletionState_VTable(Structure):
    "IBatchCompletionState virtual method table"

firebird.driver.fbapi.IBatchCompletionState_struct

IBatchCompletionState interface

Source code in firebird/driver/fbapi.py
class IBatchCompletionState_struct(Structure):
    "IBatchCompletionState interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IBatchCompletionState_VTablePtr)]

firebird.driver.fbapi.IRequest_VTable

IRequest virtual method table

Source code in firebird/driver/fbapi.py
class IRequest_VTable(Structure):
    "IRequest virtual method table"

firebird.driver.fbapi.IRequest_struct

IRequest interface

Source code in firebird/driver/fbapi.py
class IRequest_struct(Structure):
    "IRequest interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IRequest_VTablePtr)]

firebird.driver.fbapi.IEvents_VTable

IEvents virtual method table

Source code in firebird/driver/fbapi.py
class IEvents_VTable(Structure):
    "IEvents virtual method table"

firebird.driver.fbapi.IEvents_struct

IEvents interface

Source code in firebird/driver/fbapi.py
class IEvents_struct(Structure):
    "IEvents interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IEvents_VTablePtr)]

firebird.driver.fbapi.IAttachment_VTable

IAttachment virtual method table

Source code in firebird/driver/fbapi.py
class IAttachment_VTable(Structure):
    "IAttachment virtual method table"

firebird.driver.fbapi.IAttachment_struct

IAttachment interface

Source code in firebird/driver/fbapi.py
class IAttachment_struct(Structure):
    "IAttachment interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IAttachment_VTablePtr)]

firebird.driver.fbapi.IService_VTable

IService virtual method table

Source code in firebird/driver/fbapi.py
class IService_VTable(Structure):
    "IService virtual method table"

firebird.driver.fbapi.IService_struct

IService interface

Source code in firebird/driver/fbapi.py
class IService_struct(Structure):
    "IService interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IService_VTablePtr)]

firebird.driver.fbapi.IProvider_VTable

IProvider virtual method table

Source code in firebird/driver/fbapi.py
class IProvider_VTable(Structure):
    "IProvider virtual method table"

firebird.driver.fbapi.IProvider_struct

IProvider interface

Source code in firebird/driver/fbapi.py
class IProvider_struct(Structure):
    "IProvider interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IProvider_VTablePtr)]

firebird.driver.fbapi.IDtcStart_VTable

IDtcStart virtual method table

Source code in firebird/driver/fbapi.py
class IDtcStart_VTable(Structure):
    "IDtcStart virtual method table"

firebird.driver.fbapi.IDtcStart_struct

IDtcStart interface

Source code in firebird/driver/fbapi.py
class IDtcStart_struct(Structure):
    "IDtcStart interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IDtcStart_VTablePtr)]

firebird.driver.fbapi.IDtc_VTable

IDtc virtual method table

Source code in firebird/driver/fbapi.py
class IDtc_VTable(Structure):
    "IDtc virtual method table"

firebird.driver.fbapi.IDtc_struct

IDtc interface

Source code in firebird/driver/fbapi.py
class IDtc_struct(Structure):
    "IDtc interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IDtc_VTablePtr)]

firebird.driver.fbapi.ICryptKeyCallback_VTable

ICryptKeyCallback virtual method table

Source code in firebird/driver/fbapi.py
class ICryptKeyCallback_VTable(Structure):
    "ICryptKeyCallback virtual method table"

firebird.driver.fbapi.ICryptKeyCallback_struct

ICryptKeyCallback interface

Source code in firebird/driver/fbapi.py
class ICryptKeyCallback_struct(Structure):
    "ICryptKeyCallback interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', ICryptKeyCallback_VTablePtr)]

firebird.driver.fbapi.ITimer_VTable

ITimer virtual method table

Source code in firebird/driver/fbapi.py
class ITimer_VTable(Structure):
    "ITimer virtual method table"

firebird.driver.fbapi.ITimer_struct

ITimer interface

Source code in firebird/driver/fbapi.py
class ITimer_struct(Structure):
    "ITimer interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', ITimer_VTablePtr)]

firebird.driver.fbapi.ITimerControl_VTable

ITimerControl virtual method table

Source code in firebird/driver/fbapi.py
class ITimerControl_VTable(Structure):
    "ITimerControl virtual method table"

firebird.driver.fbapi.ITimerControl_struct

ITimerControl interface

Source code in firebird/driver/fbapi.py
class ITimerControl_struct(Structure):
    "ITimerControl interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', ITimerControl_VTablePtr)]

firebird.driver.fbapi.IVersionCallback_VTable

IVersionCallback virtual method table

Source code in firebird/driver/fbapi.py
class IVersionCallback_VTable(Structure):
    "IVersionCallback virtual method table"

firebird.driver.fbapi.IVersionCallback_struct

IVersionCallback interface

Source code in firebird/driver/fbapi.py
class IVersionCallback_struct(Structure):
    "IVersionCallback interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IVersionCallback_VTablePtr)]

firebird.driver.fbapi.IUtil_VTable

IUtil virtual method table

Source code in firebird/driver/fbapi.py
class IUtil_VTable(Structure):
    "IUtil virtual method table"

firebird.driver.fbapi.IUtil_struct

IUtil interface

Source code in firebird/driver/fbapi.py
class IUtil_struct(Structure):
    "IUtil interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IUtil_VTablePtr)]

firebird.driver.fbapi.IOffsetsCallback_VTable

IOffsetsCallback virtual method table

Source code in firebird/driver/fbapi.py
class IOffsetsCallback_VTable(Structure):
    "IOffsetsCallback virtual method table"

firebird.driver.fbapi.IOffsetsCallback_struct

IOffsetsCallback interface

Source code in firebird/driver/fbapi.py
class IOffsetsCallback_struct(Structure):
    "IOffsetsCallback interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IOffsetsCallback_VTablePtr)]

firebird.driver.fbapi.IXpbBuilder_VTable

IXpbBuilder virtual method table

Source code in firebird/driver/fbapi.py
class IXpbBuilder_VTable(Structure):
    "IXpbBuilder virtual method table"

firebird.driver.fbapi.IXpbBuilder_struct

IXpbBuilder interface

Source code in firebird/driver/fbapi.py
class IXpbBuilder_struct(Structure):
    "IXpbBuilder interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IXpbBuilder_VTablePtr)]

firebird.driver.fbapi.IDecFloat16_VTable

IDecFloat16 virtual method table

Source code in firebird/driver/fbapi.py
class IDecFloat16_VTable(Structure):
    "IDecFloat16 virtual method table"

firebird.driver.fbapi.IDecFloat16_struct

IDecFloat16 interface

Source code in firebird/driver/fbapi.py
class IDecFloat16_struct(Structure):
    "IDecFloat16 interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IDecFloat16_VTablePtr)]

firebird.driver.fbapi.IDecFloat34_VTable

IDecFloat34 virtual method table

Source code in firebird/driver/fbapi.py
class IDecFloat34_VTable(Structure):
    "IDecFloat34 virtual method table"

firebird.driver.fbapi.IDecFloat34_struct

IDecFloat34 interface

Source code in firebird/driver/fbapi.py
class IDecFloat34_struct(Structure):
    "IDecFloat34 interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IDecFloat34_VTablePtr)]

firebird.driver.fbapi.IInt128_VTable

IInt128 virtual method table

Source code in firebird/driver/fbapi.py
class IInt128_VTable(Structure):
    "IInt128 virtual method table"

firebird.driver.fbapi.IInt128_struct

IInt128 interface

Source code in firebird/driver/fbapi.py
class IInt128_struct(Structure):
    "IInt128 interface"
    _fields_: ClassVar = [('dummy', c_void_p), ('vtable', IInt128_VTablePtr)]