@@ -1992,57 +1992,58 @@ def __init__(self, filename: Path = None):
1992
1992
if not file_name :
1993
1993
raise Exception (f"Firebird Client Library '{ filename } ' not found" )
1994
1994
filename = file_name
1995
+ #: Firebird client library
1995
1996
self .client_library : ctypes .CDLL = None
1996
1997
if sys .platform in ('win32' , 'cygwin' , 'os2' , 'os2emx' ):
1997
1998
self .client_library : ctypes .CDLL = ctypes .WinDLL (str (filename ))
1998
1999
else :
1999
2000
self .client_library : ctypes .CDLL = ctypes .CDLL (str (filename ))
2000
- #
2001
+ #: Firebird client library name
2001
2002
self .client_library_name : Path = Path (filename )
2002
- #
2003
+ #: Firebird API
2003
2004
self .fb_get_master_interface = (self .client_library .fb_get_master_interface )
2004
2005
self .fb_get_master_interface .restype = IMaster
2005
2006
self .fb_get_master_interface .argtypes = []
2006
- #
2007
+ #: Firebird API
2007
2008
self .fb_get_database_handle = self .client_library .fb_get_database_handle
2008
2009
self .fb_get_database_handle .restype = ISC_STATUS
2009
2010
self .fb_get_database_handle .argtypes = [ISC_STATUS_PTR , FB_API_HANDLE_PTR , IAttachment ]
2010
- #
2011
+ #: Firebird API
2011
2012
self .fb_get_transaction_handle = (self .client_library .fb_get_transaction_handle )
2012
2013
self .fb_get_transaction_handle .restype = ISC_STATUS
2013
2014
self .fb_get_transaction_handle .argtypes = [ISC_STATUS_PTR , FB_API_HANDLE_PTR , ITransaction ]
2014
- #
2015
+ #: Firebird API
2015
2016
self .fb_sqlstate = self .client_library .fb_sqlstate
2016
2017
self .fb_sqlstate .restype = None
2017
2018
self .fb_sqlstate .argtypes = [STRING , ISC_STATUS_PTR ]
2018
- #
2019
+ #: Firebird API
2019
2020
self .fb_shutdown_callback = self .client_library .fb_shutdown_callback
2020
2021
self .fb_shutdown_callback .restype = ISC_STATUS
2021
2022
self .fb_shutdown_callback .argtypes = [ISC_STATUS_PTR ,
2022
2023
FB_SHUTDOWN_CALLBACK ,
2023
2024
c_int ,
2024
2025
c_void_p ]
2025
- #
2026
+ #: Firebird API
2026
2027
self .isc_sqlcode = self .client_library .isc_sqlcode
2027
2028
self .isc_sqlcode .restype = ISC_LONG
2028
2029
self .isc_sqlcode .argtypes = [ISC_STATUS_PTR ]
2029
- #
2030
+ #: Firebird API
2030
2031
self .fb_interpret = self .client_library .fb_interpret
2031
2032
self .fb_interpret .restype = ISC_LONG
2032
2033
self .fb_interpret .argtypes = [STRING , c_uint , POINTER (ISC_STATUS_PTR )]
2033
- #
2034
+ #: Firebird API
2034
2035
self .isc_array_lookup_bounds = (self .client_library .isc_array_lookup_bounds )
2035
2036
self .isc_array_lookup_bounds .restype = ISC_STATUS
2036
2037
self .isc_array_lookup_bounds .argtypes = [ISC_STATUS_PTR , FB_API_HANDLE_PTR ,
2037
2038
FB_API_HANDLE_PTR , STRING , STRING ,
2038
2039
ISC_ARRAY_DESC_PTR ]
2039
- #
2040
+ #: Firebird API
2040
2041
self .isc_array_put_slice = self .client_library .isc_array_put_slice
2041
2042
self .isc_array_put_slice .restype = ISC_STATUS
2042
2043
self .isc_array_put_slice .argtypes = [ISC_STATUS_PTR , FB_API_HANDLE_PTR ,
2043
2044
FB_API_HANDLE_PTR , ISC_QUAD_PTR ,
2044
2045
ISC_ARRAY_DESC_PTR , c_void_p , ISC_LONG_PTR ]
2045
- #
2046
+ #: Firebird API
2046
2047
self .isc_array_get_slice = self .client_library .isc_array_get_slice
2047
2048
self .isc_array_get_slice .restype = ISC_STATUS
2048
2049
self .isc_array_get_slice .argtypes = [ISC_STATUS_PTR , FB_API_HANDLE_PTR ,
@@ -2054,22 +2055,83 @@ def __init__(self, filename: Path = None):
2054
2055
# C_isc_event_block(ISC_LONG, POINTER(POINTER(ISC_UCHAR)), POINTER(POINTER(ISC_UCHAR)), ISC_USHORT)
2055
2056
self .C_isc_event_block = self .P_isc_event_block (('isc_event_block' , self .client_library ))
2056
2057
self .P_isc_event_block_args = self .C_isc_event_block .argtypes
2057
- #
2058
+ #: Firebird API
2058
2059
self .isc_que_events = self .client_library .isc_que_events
2059
2060
self .isc_que_events .restype = ISC_STATUS
2060
2061
self .isc_que_events .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2061
2062
POINTER (ISC_LONG ), c_short , POINTER (ISC_UCHAR ),
2062
2063
ISC_EVENT_CALLBACK , POINTER (ISC_UCHAR )]
2063
- #
2064
+ #: Firebird API
2064
2065
self .isc_event_counts = self .client_library .isc_event_counts
2065
2066
self .isc_event_counts .restype = None
2066
2067
self .isc_event_counts .argtypes = [POINTER (RESULT_VECTOR ), c_short ,
2067
2068
POINTER (ISC_UCHAR ), POINTER (ISC_UCHAR )]
2068
- #
2069
+ #: Firebird API
2069
2070
self .isc_cancel_events = self .client_library .isc_cancel_events
2070
2071
self .isc_cancel_events .restype = ISC_STATUS
2071
2072
self .isc_cancel_events .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2072
2073
POINTER (ISC_LONG )]
2074
+ #: Firebird API
2075
+ self .isc_compile_request = self .client_library .isc_compile_request
2076
+ self .isc_compile_request .restype = ISC_STATUS
2077
+ self .isc_compile_request .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2078
+ POINTER (FB_API_HANDLE ), c_short , STRING ]
2079
+ #: Firebird API
2080
+ self .isc_start_request = self .client_library .isc_start_request
2081
+ self .isc_start_request .restype = ISC_STATUS
2082
+ self .isc_start_request .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2083
+ POINTER (FB_API_HANDLE ), c_short ]
2084
+ #: Firebird API
2085
+ self .isc_release_request = self .client_library .isc_release_request
2086
+ self .isc_release_request .restype = ISC_STATUS
2087
+ self .isc_release_request .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE )]
2088
+ #: Firebird API
2089
+ self .isc_receive = self .client_library .isc_receive
2090
+ self .isc_receive .restype = ISC_STATUS
2091
+ self .isc_receive .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2092
+ c_short , c_short , c_void_p , c_short ]
2093
+ #: Firebird API
2094
+ self .isc_start_and_send = self .client_library .isc_start_and_send
2095
+ self .isc_start_and_send .restype = ISC_STATUS
2096
+ self .isc_start_and_send .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2097
+ POINTER (FB_API_HANDLE ), c_short , c_short ,
2098
+ c_void_p , c_short ]
2099
+ #: Firebird API
2100
+ self .isc_send = self .client_library .isc_send
2101
+ self .isc_send .restype = ISC_STATUS
2102
+ self .isc_send .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2103
+ c_short , c_short , c_void_p , c_short ]
2104
+ #: Firebird API
2105
+ self .isc_open_blob2 = self .client_library .isc_open_blob2
2106
+ self .isc_open_blob2 .restype = ISC_STATUS
2107
+ self .isc_open_blob2 .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2108
+ POINTER (FB_API_HANDLE ), POINTER (FB_API_HANDLE ),
2109
+ POINTER (ISC_QUAD ), ISC_USHORT , STRING ] # POINTER(ISC_UCHAR)
2110
+ #: Firebird API
2111
+ self .isc_blob_info = self .client_library .isc_blob_info
2112
+ self .isc_blob_info .restype = ISC_STATUS
2113
+ self .isc_blob_info .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2114
+ c_short , STRING , c_short , POINTER (c_char )]
2115
+ #: Firebird API
2116
+ self .isc_create_blob2 = self .client_library .isc_create_blob2
2117
+ self .isc_create_blob2 .restype = ISC_STATUS
2118
+ self .isc_create_blob2 .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2119
+ POINTER (FB_API_HANDLE ), POINTER (FB_API_HANDLE ),
2120
+ POINTER (ISC_QUAD ), c_short , STRING ]
2121
+ #: Firebird API
2122
+ self .isc_get_segment = self .client_library .isc_get_segment
2123
+ self .isc_get_segment .restype = ISC_STATUS
2124
+ self .isc_get_segment .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2125
+ POINTER (c_ushort ), c_ushort , c_void_p ]
2126
+ #: Firebird API
2127
+ self .isc_put_segment = self .client_library .isc_put_segment
2128
+ self .isc_put_segment .restype = ISC_STATUS
2129
+ self .isc_put_segment .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE ),
2130
+ c_ushort , c_void_p ]
2131
+ #: Firebird API
2132
+ self .isc_close_blob = self .client_library .isc_close_blob
2133
+ self .isc_close_blob .restype = ISC_STATUS
2134
+ self .isc_close_blob .argtypes = [POINTER (ISC_STATUS ), POINTER (FB_API_HANDLE )]
2073
2135
# Next netributes are set in types by API_LOADED hook
2074
2136
self .master = None
2075
2137
self .util = None
0 commit comments