'''Wrapper for dbmi.h

Generated with:
./ctypesgen.py --cpp gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG -lgrass_dbmiclient.7.0.5 -lgrass_dbmibase.7.0.5 C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/dbmi.h C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h -o OBJ.x86_64-w64-mingw32/dbmi.py

Do not modify this file.
'''

__docformat__ =  'restructuredtext'


_libs = {}
_libdirs = []

from ctypes_preamble import *
from ctypes_preamble import _variadic_function
from ctypes_loader import *

add_library_search_dirs([])

# Begin libraries

_libs["grass_dbmiclient.7.0.5"] = load_library("grass_dbmiclient.7.0.5")
_libs["grass_dbmibase.7.0.5"] = load_library("grass_dbmibase.7.0.5")

# 2 libraries
# End libraries

# No modules

# C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h: 26
class struct__iobuf(Structure):
    pass

struct__iobuf.__slots__ = [
    '_ptr',
    '_cnt',
    '_base',
    '_flag',
    '_file',
    '_charbuf',
    '_bufsiz',
    '_tmpfname',
]
struct__iobuf._fields_ = [
    ('_ptr', String),
    ('_cnt', c_int),
    ('_base', String),
    ('_flag', c_int),
    ('_file', c_int),
    ('_charbuf', c_int),
    ('_bufsiz', c_int),
    ('_tmpfname', String),
]

FILE = struct__iobuf # C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h: 36

dbAddress = POINTER(None) # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 144

dbToken = c_int # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 145

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 151
class struct__db_string(Structure):
    pass

struct__db_string.__slots__ = [
    'string',
    'nalloc',
]
struct__db_string._fields_ = [
    ('string', String),
    ('nalloc', c_int),
]

dbString = struct__db_string # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 151

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 153
class struct__dbmscap(Structure):
    pass

struct__dbmscap.__slots__ = [
    'driverName',
    'startup',
    'comment',
    'next',
]
struct__dbmscap._fields_ = [
    ('driverName', c_char * 256),
    ('startup', c_char * 256),
    ('comment', c_char * 256),
    ('next', POINTER(struct__dbmscap)),
]

dbDbmscap = struct__dbmscap # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 159

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 166
class struct__db_dirent(Structure):
    pass

struct__db_dirent.__slots__ = [
    'name',
    'isdir',
    'perm',
]
struct__db_dirent._fields_ = [
    ('name', dbString),
    ('isdir', c_int),
    ('perm', c_int),
]

dbDirent = struct__db_dirent # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 166

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 173
class struct__db_driver(Structure):
    pass

struct__db_driver.__slots__ = [
    'dbmscap',
    'send',
    'recv',
    'pid',
]
struct__db_driver._fields_ = [
    ('dbmscap', dbDbmscap),
    ('send', POINTER(FILE)),
    ('recv', POINTER(FILE)),
    ('pid', c_int),
]

dbDriver = struct__db_driver # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 173

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 180
class struct__db_handle(Structure):
    pass

struct__db_handle.__slots__ = [
    'dbName',
    'dbSchema',
]
struct__db_handle._fields_ = [
    ('dbName', dbString),
    ('dbSchema', dbString),
]

dbHandle = struct__db_handle # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 180

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 191
class struct__db_date_time(Structure):
    pass

struct__db_date_time.__slots__ = [
    'current',
    'year',
    'month',
    'day',
    'hour',
    'minute',
    'seconds',
]
struct__db_date_time._fields_ = [
    ('current', c_char),
    ('year', c_int),
    ('month', c_int),
    ('day', c_int),
    ('hour', c_int),
    ('minute', c_int),
    ('seconds', c_double),
]

dbDateTime = struct__db_date_time # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 191

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 200
class struct__db_value(Structure):
    pass

struct__db_value.__slots__ = [
    'isNull',
    'i',
    'd',
    's',
    't',
]
struct__db_value._fields_ = [
    ('isNull', c_char),
    ('i', c_int),
    ('d', c_double),
    ('s', dbString),
    ('t', dbDateTime),
]

dbValue = struct__db_value # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 200

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 218
class struct__db_column(Structure):
    pass

struct__db_column.__slots__ = [
    'columnName',
    'description',
    'sqlDataType',
    'hostDataType',
    'value',
    'dataLen',
    'precision',
    'scale',
    'nullAllowed',
    'hasDefaultValue',
    'useDefaultValue',
    'defaultValue',
    'select',
    'update',
]
struct__db_column._fields_ = [
    ('columnName', dbString),
    ('description', dbString),
    ('sqlDataType', c_int),
    ('hostDataType', c_int),
    ('value', dbValue),
    ('dataLen', c_int),
    ('precision', c_int),
    ('scale', c_int),
    ('nullAllowed', c_char),
    ('hasDefaultValue', c_char),
    ('useDefaultValue', c_char),
    ('defaultValue', dbValue),
    ('select', c_int),
    ('update', c_int),
]

dbColumn = struct__db_column # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 218

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 228
class struct__db_table(Structure):
    pass

struct__db_table.__slots__ = [
    'tableName',
    'description',
    'numColumns',
    'columns',
    'priv_insert',
    'priv_delete',
]
struct__db_table._fields_ = [
    ('tableName', dbString),
    ('description', dbString),
    ('numColumns', c_int),
    ('columns', POINTER(dbColumn)),
    ('priv_insert', c_int),
    ('priv_delete', c_int),
]

dbTable = struct__db_table # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 228

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 238
class struct__db_cursor(Structure):
    pass

struct__db_cursor.__slots__ = [
    'token',
    'driver',
    'table',
    'column_flags',
    'type',
    'mode',
]
struct__db_cursor._fields_ = [
    ('token', dbToken),
    ('driver', POINTER(dbDriver)),
    ('table', POINTER(dbTable)),
    ('column_flags', POINTER(c_short)),
    ('type', c_int),
    ('mode', c_int),
]

dbCursor = struct__db_cursor # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 238

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 247
class struct__db_index(Structure):
    pass

struct__db_index.__slots__ = [
    'indexName',
    'tableName',
    'numColumns',
    'columnNames',
    'unique',
]
struct__db_index._fields_ = [
    ('indexName', dbString),
    ('tableName', dbString),
    ('numColumns', c_int),
    ('columnNames', POINTER(dbString)),
    ('unique', c_char),
]

dbIndex = struct__db_index # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 247

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 256
class struct__db_driver_state(Structure):
    pass

struct__db_driver_state.__slots__ = [
    'dbname',
    'dbschema',
    'open',
    'ncursors',
    'cursor_list',
]
struct__db_driver_state._fields_ = [
    ('dbname', String),
    ('dbschema', String),
    ('open', c_int),
    ('ncursors', c_int),
    ('cursor_list', POINTER(POINTER(dbCursor))),
]

dbDriverState = struct__db_driver_state # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 256

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 263
class struct_anon_7(Structure):
    pass

struct_anon_7.__slots__ = [
    'cat',
    'val',
]
struct_anon_7._fields_ = [
    ('cat', c_int),
    ('val', c_int),
]

dbCatValI = struct_anon_7 # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 263

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 270
class union_anon_8(Union):
    pass

union_anon_8.__slots__ = [
    'i',
    'd',
    's',
    't',
]
union_anon_8._fields_ = [
    ('i', c_int),
    ('d', c_double),
    ('s', POINTER(dbString)),
    ('t', POINTER(dbDateTime)),
]

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 281
class struct_anon_9(Structure):
    pass

struct_anon_9.__slots__ = [
    'cat',
    'isNull',
    'val',
]
struct_anon_9._fields_ = [
    ('cat', c_int),
    ('isNull', c_int),
    ('val', union_anon_8),
]

dbCatVal = struct_anon_9 # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 281

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 290
class struct_anon_10(Structure):
    pass

struct_anon_10.__slots__ = [
    'n_values',
    'alloc',
    'ctype',
    'value',
]
struct_anon_10._fields_ = [
    ('n_values', c_int),
    ('alloc', c_int),
    ('ctype', c_int),
    ('value', POINTER(dbCatVal)),
]

dbCatValArray = struct_anon_10 # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 290

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 304
class struct__db_connection(Structure):
    pass

struct__db_connection.__slots__ = [
    'driverName',
    'hostName',
    'databaseName',
    'schemaName',
    'port',
    'user',
    'password',
    'keycol',
    'group',
]
struct__db_connection._fields_ = [
    ('driverName', String),
    ('hostName', String),
    ('databaseName', String),
    ('schemaName', String),
    ('port', String),
    ('user', String),
    ('password', String),
    ('keycol', String),
    ('group', String),
]

dbConnection = struct__db_connection # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 304

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 316
class struct_anon_11(Structure):
    pass

struct_anon_11.__slots__ = [
    'count',
    'alloc',
    'table',
    'key',
    'cat',
    'where',
    'label',
]
struct_anon_11._fields_ = [
    ('count', c_int),
    ('alloc', c_int),
    ('table', String),
    ('key', String),
    ('cat', POINTER(c_int)),
    ('where', POINTER(POINTER(c_char))),
    ('label', POINTER(POINTER(c_char))),
]

dbRclsRule = struct_anon_11 # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 316

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 4
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_Cstring_to_lowercase'):
    db_Cstring_to_lowercase = _libs['grass_dbmibase.7.0.5'].db_Cstring_to_lowercase
    db_Cstring_to_lowercase.restype = None
    db_Cstring_to_lowercase.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 5
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_Cstring_to_uppercase'):
    db_Cstring_to_uppercase = _libs['grass_dbmibase.7.0.5'].db_Cstring_to_uppercase
    db_Cstring_to_uppercase.restype = None
    db_Cstring_to_uppercase.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 6
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_add_column'):
    db_add_column = _libs['grass_dbmiclient.7.0.5'].db_add_column
    db_add_column.restype = c_int
    db_add_column.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 7
for _lib in _libs.values():
    if hasattr(_lib, 'db__add_cursor_to_driver_state'):
        db__add_cursor_to_driver_state = _lib.db__add_cursor_to_driver_state
        db__add_cursor_to_driver_state.restype = None
        db__add_cursor_to_driver_state.argtypes = [POINTER(dbCursor)]
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 8
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_cursor_column_flags'):
    db_alloc_cursor_column_flags = _libs['grass_dbmibase.7.0.5'].db_alloc_cursor_column_flags
    db_alloc_cursor_column_flags.restype = c_int
    db_alloc_cursor_column_flags.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 9
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_cursor_table'):
    db_alloc_cursor_table = _libs['grass_dbmibase.7.0.5'].db_alloc_cursor_table
    db_alloc_cursor_table.restype = c_int
    db_alloc_cursor_table.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 10
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_append_table_column'):
    db_append_table_column = _libs['grass_dbmibase.7.0.5'].db_append_table_column
    db_append_table_column.restype = c_int
    db_append_table_column.argtypes = [POINTER(dbTable), POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 11
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_dirent_array'):
    db_alloc_dirent_array = _libs['grass_dbmibase.7.0.5'].db_alloc_dirent_array
    db_alloc_dirent_array.restype = POINTER(dbDirent)
    db_alloc_dirent_array.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 12
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_handle_array'):
    db_alloc_handle_array = _libs['grass_dbmibase.7.0.5'].db_alloc_handle_array
    db_alloc_handle_array.restype = POINTER(dbHandle)
    db_alloc_handle_array.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 13
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_index_array'):
    db_alloc_index_array = _libs['grass_dbmibase.7.0.5'].db_alloc_index_array
    db_alloc_index_array.restype = POINTER(dbIndex)
    db_alloc_index_array.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 14
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_index_columns'):
    db_alloc_index_columns = _libs['grass_dbmibase.7.0.5'].db_alloc_index_columns
    db_alloc_index_columns.restype = c_int
    db_alloc_index_columns.argtypes = [POINTER(dbIndex), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 15
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_string_array'):
    db_alloc_string_array = _libs['grass_dbmibase.7.0.5'].db_alloc_string_array
    db_alloc_string_array.restype = POINTER(dbString)
    db_alloc_string_array.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 16
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_alloc_table'):
    db_alloc_table = _libs['grass_dbmibase.7.0.5'].db_alloc_table
    db_alloc_table.restype = POINTER(dbTable)
    db_alloc_table.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 17
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_append_string'):
    db_append_string = _libs['grass_dbmibase.7.0.5'].db_append_string
    db_append_string.restype = c_int
    db_append_string.argtypes = [POINTER(dbString), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 18
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_auto_print_errors'):
    db_auto_print_errors = _libs['grass_dbmibase.7.0.5'].db_auto_print_errors
    db_auto_print_errors.restype = None
    db_auto_print_errors.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 19
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_auto_print_protocol_errors'):
    db_auto_print_protocol_errors = _libs['grass_dbmibase.7.0.5'].db_auto_print_protocol_errors
    db_auto_print_protocol_errors.restype = None
    db_auto_print_protocol_errors.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 20
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_bind_update'):
    db_bind_update = _libs['grass_dbmiclient.7.0.5'].db_bind_update
    db_bind_update.restype = c_int
    db_bind_update.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 21
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_calloc'):
    db_calloc = _libs['grass_dbmibase.7.0.5'].db_calloc
    db_calloc.restype = POINTER(None)
    db_calloc.argtypes = [c_int, c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 22
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_CatValArray_alloc'):
    db_CatValArray_alloc = _libs['grass_dbmibase.7.0.5'].db_CatValArray_alloc
    db_CatValArray_alloc.restype = c_int
    db_CatValArray_alloc.argtypes = [POINTER(dbCatValArray), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 23
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_CatValArray_realloc'):
    db_CatValArray_realloc = _libs['grass_dbmibase.7.0.5'].db_CatValArray_realloc
    db_CatValArray_realloc.restype = c_int
    db_CatValArray_realloc.argtypes = [POINTER(dbCatValArray), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 24
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_CatValArray_free'):
    db_CatValArray_free = _libs['grass_dbmibase.7.0.5'].db_CatValArray_free
    db_CatValArray_free.restype = None
    db_CatValArray_free.argtypes = [POINTER(dbCatValArray)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 25
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_CatValArray_init'):
    db_CatValArray_init = _libs['grass_dbmibase.7.0.5'].db_CatValArray_init
    db_CatValArray_init.restype = None
    db_CatValArray_init.argtypes = [POINTER(dbCatValArray)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 26
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_CatValArray_sort'):
    db_CatValArray_sort = _libs['grass_dbmiclient.7.0.5'].db_CatValArray_sort
    db_CatValArray_sort.restype = None
    db_CatValArray_sort.argtypes = [POINTER(dbCatValArray)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 27
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_CatValArray_sort_by_value'):
    db_CatValArray_sort_by_value = _libs['grass_dbmiclient.7.0.5'].db_CatValArray_sort_by_value
    db_CatValArray_sort_by_value.restype = c_int
    db_CatValArray_sort_by_value.argtypes = [POINTER(dbCatValArray)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 28
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_CatValArray_get_value'):
    db_CatValArray_get_value = _libs['grass_dbmiclient.7.0.5'].db_CatValArray_get_value
    db_CatValArray_get_value.restype = c_int
    db_CatValArray_get_value.argtypes = [POINTER(dbCatValArray), c_int, POINTER(POINTER(dbCatVal))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 29
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_CatValArray_get_value_int'):
    db_CatValArray_get_value_int = _libs['grass_dbmiclient.7.0.5'].db_CatValArray_get_value_int
    db_CatValArray_get_value_int.restype = c_int
    db_CatValArray_get_value_int.argtypes = [POINTER(dbCatValArray), c_int, POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 30
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_CatValArray_get_value_double'):
    db_CatValArray_get_value_double = _libs['grass_dbmiclient.7.0.5'].db_CatValArray_get_value_double
    db_CatValArray_get_value_double.restype = c_int
    db_CatValArray_get_value_double.argtypes = [POINTER(dbCatValArray), c_int, POINTER(c_double)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 32
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_char_to_lowercase'):
    db_char_to_lowercase = _libs['grass_dbmibase.7.0.5'].db_char_to_lowercase
    db_char_to_lowercase.restype = None
    db_char_to_lowercase.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 33
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_char_to_uppercase'):
    db_char_to_uppercase = _libs['grass_dbmibase.7.0.5'].db_char_to_uppercase
    db_char_to_uppercase.restype = None
    db_char_to_uppercase.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 34
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_clear_error'):
    db_clear_error = _libs['grass_dbmibase.7.0.5'].db_clear_error
    db_clear_error.restype = None
    db_clear_error.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 35
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_clone_table'):
    db_clone_table = _libs['grass_dbmibase.7.0.5'].db_clone_table
    db_clone_table.restype = POINTER(dbTable)
    db_clone_table.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 36
for _lib in _libs.values():
    if hasattr(_lib, 'db__close_all_cursors'):
        db__close_all_cursors = _lib.db__close_all_cursors
        db__close_all_cursors.restype = None
        db__close_all_cursors.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 37
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_close_cursor'):
    db_close_cursor = _libs['grass_dbmiclient.7.0.5'].db_close_cursor
    db_close_cursor.restype = c_int
    db_close_cursor.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 38
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_close_database'):
    db_close_database = _libs['grass_dbmiclient.7.0.5'].db_close_database
    db_close_database.restype = c_int
    db_close_database.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 39
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_close_database_shutdown_driver'):
    db_close_database_shutdown_driver = _libs['grass_dbmiclient.7.0.5'].db_close_database_shutdown_driver
    db_close_database_shutdown_driver.restype = c_int
    db_close_database_shutdown_driver.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 40
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_column_sqltype'):
    db_column_sqltype = _libs['grass_dbmiclient.7.0.5'].db_column_sqltype
    db_column_sqltype.restype = c_int
    db_column_sqltype.argtypes = [POINTER(dbDriver), String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 41
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_column_Ctype'):
    db_column_Ctype = _libs['grass_dbmiclient.7.0.5'].db_column_Ctype
    db_column_Ctype.restype = c_int
    db_column_Ctype.argtypes = [POINTER(dbDriver), String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 42
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_Cstring_to_column_default_value'):
    db_convert_Cstring_to_column_default_value = _libs['grass_dbmibase.7.0.5'].db_convert_Cstring_to_column_default_value
    db_convert_Cstring_to_column_default_value.restype = c_int
    db_convert_Cstring_to_column_default_value.argtypes = [String, POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 44
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_Cstring_to_column_value'):
    db_convert_Cstring_to_column_value = _libs['grass_dbmibase.7.0.5'].db_convert_Cstring_to_column_value
    db_convert_Cstring_to_column_value.restype = c_int
    db_convert_Cstring_to_column_value.argtypes = [String, POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 46
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_Cstring_to_value'):
    db_convert_Cstring_to_value = _libs['grass_dbmibase.7.0.5'].db_convert_Cstring_to_value
    db_convert_Cstring_to_value.restype = c_int
    db_convert_Cstring_to_value.argtypes = [String, c_int, POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 48
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_Cstring_to_value_datetime'):
    db_convert_Cstring_to_value_datetime = _libs['grass_dbmibase.7.0.5'].db_convert_Cstring_to_value_datetime
    db_convert_Cstring_to_value_datetime.restype = c_int
    db_convert_Cstring_to_value_datetime.argtypes = [String, c_int, POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 50
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_column_default_value_to_string'):
    db_convert_column_default_value_to_string = _libs['grass_dbmibase.7.0.5'].db_convert_column_default_value_to_string
    db_convert_column_default_value_to_string.restype = c_int
    db_convert_column_default_value_to_string.argtypes = [POINTER(dbColumn), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 52
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_column_value_to_string'):
    db_convert_column_value_to_string = _libs['grass_dbmibase.7.0.5'].db_convert_column_value_to_string
    db_convert_column_value_to_string.restype = c_int
    db_convert_column_value_to_string.argtypes = [POINTER(dbColumn), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 53
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_value_datetime_into_string'):
    db_convert_value_datetime_into_string = _libs['grass_dbmibase.7.0.5'].db_convert_value_datetime_into_string
    db_convert_value_datetime_into_string.restype = c_int
    db_convert_value_datetime_into_string.argtypes = [POINTER(dbValue), c_int, POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 55
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_convert_value_to_string'):
    db_convert_value_to_string = _libs['grass_dbmibase.7.0.5'].db_convert_value_to_string
    db_convert_value_to_string.restype = c_int
    db_convert_value_to_string.argtypes = [POINTER(dbValue), c_int, POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 57
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_copy_column'):
    db_copy_column = _libs['grass_dbmibase.7.0.5'].db_copy_column
    db_copy_column.restype = POINTER(dbColumn)
    db_copy_column.argtypes = [POINTER(dbColumn), POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 58
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_copy_dbmscap_entry'):
    db_copy_dbmscap_entry = _libs['grass_dbmibase.7.0.5'].db_copy_dbmscap_entry
    db_copy_dbmscap_entry.restype = None
    db_copy_dbmscap_entry.argtypes = [POINTER(dbDbmscap), POINTER(dbDbmscap)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 59
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_copy_string'):
    db_copy_string = _libs['grass_dbmibase.7.0.5'].db_copy_string
    db_copy_string.restype = c_int
    db_copy_string.argtypes = [POINTER(dbString), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 60
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_table_to_sql'):
    db_table_to_sql = _libs['grass_dbmibase.7.0.5'].db_table_to_sql
    db_table_to_sql.restype = c_int
    db_table_to_sql.argtypes = [POINTER(dbTable), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 61
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_copy_table'):
    db_copy_table = _libs['grass_dbmiclient.7.0.5'].db_copy_table
    db_copy_table.restype = c_int
    db_copy_table.argtypes = [String, String, String, String, String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 63
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_copy_table_where'):
    db_copy_table_where = _libs['grass_dbmiclient.7.0.5'].db_copy_table_where
    db_copy_table_where.restype = c_int
    db_copy_table_where.argtypes = [String, String, String, String, String, String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 66
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_copy_table_select'):
    db_copy_table_select = _libs['grass_dbmiclient.7.0.5'].db_copy_table_select
    db_copy_table_select.restype = c_int
    db_copy_table_select.argtypes = [String, String, String, String, String, String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 69
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_copy_table_by_ints'):
    db_copy_table_by_ints = _libs['grass_dbmiclient.7.0.5'].db_copy_table_by_ints
    db_copy_table_by_ints.restype = c_int
    db_copy_table_by_ints.argtypes = [String, String, String, String, String, String, String, POINTER(c_int), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 72
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_copy_value'):
    db_copy_value = _libs['grass_dbmibase.7.0.5'].db_copy_value
    db_copy_value.restype = None
    db_copy_value.argtypes = [POINTER(dbValue), POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 73
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_create_database'):
    db_create_database = _libs['grass_dbmiclient.7.0.5'].db_create_database
    db_create_database.restype = c_int
    db_create_database.argtypes = [POINTER(dbDriver), POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 74
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_create_index'):
    db_create_index = _libs['grass_dbmiclient.7.0.5'].db_create_index
    db_create_index.restype = c_int
    db_create_index.argtypes = [POINTER(dbDriver), POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 75
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_create_index2'):
    db_create_index2 = _libs['grass_dbmiclient.7.0.5'].db_create_index2
    db_create_index2.restype = c_int
    db_create_index2.argtypes = [POINTER(dbDriver), String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 77
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_create_table'):
    db_create_table = _libs['grass_dbmiclient.7.0.5'].db_create_table
    db_create_table.restype = c_int
    db_create_table.argtypes = [POINTER(dbDriver), POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 78
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_add_column'):
        db_d_add_column = _lib.db_d_add_column
        db_d_add_column.restype = c_int
        db_d_add_column.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 79
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_bind_update'):
        db_d_bind_update = _lib.db_d_bind_update
        db_d_bind_update.restype = c_int
        db_d_bind_update.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 80
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_dbmscap_filename'):
    db_dbmscap_filename = _libs['grass_dbmibase.7.0.5'].db_dbmscap_filename
    db_dbmscap_filename.restype = ReturnString
    db_dbmscap_filename.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 81
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_close_cursor'):
        db_d_close_cursor = _lib.db_d_close_cursor
        db_d_close_cursor.restype = c_int
        db_d_close_cursor.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 82
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_close_database'):
        db_d_close_database = _lib.db_d_close_database
        db_d_close_database.restype = c_int
        db_d_close_database.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 83
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_create_database'):
        db_d_create_database = _lib.db_d_create_database
        db_d_create_database.restype = c_int
        db_d_create_database.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 84
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_create_index'):
        db_d_create_index = _lib.db_d_create_index
        db_d_create_index.restype = c_int
        db_d_create_index.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 85
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_create_table'):
        db_d_create_table = _lib.db_d_create_table
        db_d_create_table.restype = c_int
        db_d_create_table.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 86
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_delete'):
        db_d_delete = _lib.db_d_delete
        db_d_delete.restype = c_int
        db_d_delete.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 87
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_delete_database'):
        db_d_delete_database = _lib.db_d_delete_database
        db_d_delete_database.restype = c_int
        db_d_delete_database.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 88
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_describe_table'):
        db_d_describe_table = _lib.db_d_describe_table
        db_d_describe_table.restype = c_int
        db_d_describe_table.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 89
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_drop_column'):
        db_d_drop_column = _lib.db_d_drop_column
        db_d_drop_column.restype = c_int
        db_d_drop_column.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 90
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_drop_index'):
        db_d_drop_index = _lib.db_d_drop_index
        db_d_drop_index.restype = c_int
        db_d_drop_index.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 91
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_drop_table'):
        db_d_drop_table = _lib.db_d_drop_table
        db_d_drop_table.restype = c_int
        db_d_drop_table.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 92
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_debug'):
    db_debug = _libs['grass_dbmibase.7.0.5'].db_debug
    db_debug.restype = None
    db_debug.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 93
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_debug_off'):
    db_debug_off = _libs['grass_dbmibase.7.0.5'].db_debug_off
    db_debug_off.restype = None
    db_debug_off.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 94
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_debug_on'):
    db_debug_on = _libs['grass_dbmibase.7.0.5'].db_debug_on
    db_debug_on.restype = None
    db_debug_on.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 95
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_delete'):
    db_delete = _libs['grass_dbmiclient.7.0.5'].db_delete
    db_delete.restype = c_int
    db_delete.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 96
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_delete_database'):
    db_delete_database = _libs['grass_dbmiclient.7.0.5'].db_delete_database
    db_delete_database.restype = c_int
    db_delete_database.argtypes = [POINTER(dbDriver), POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 97
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_delete_table'):
    db_delete_table = _libs['grass_dbmiclient.7.0.5'].db_delete_table
    db_delete_table.restype = c_int
    db_delete_table.argtypes = [String, String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 98
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_describe_table'):
    db_describe_table = _libs['grass_dbmiclient.7.0.5'].db_describe_table
    db_describe_table.restype = c_int
    db_describe_table.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(POINTER(dbTable))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 99
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_execute_immediate'):
        db_d_execute_immediate = _lib.db_d_execute_immediate
        db_d_execute_immediate.restype = c_int
        db_d_execute_immediate.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 100
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_begin_transaction'):
        db_d_begin_transaction = _lib.db_d_begin_transaction
        db_d_begin_transaction.restype = c_int
        db_d_begin_transaction.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 101
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_commit_transaction'):
        db_d_commit_transaction = _lib.db_d_commit_transaction
        db_d_commit_transaction.restype = c_int
        db_d_commit_transaction.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 102
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_fetch'):
        db_d_fetch = _lib.db_d_fetch
        db_d_fetch.restype = c_int
        db_d_fetch.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 103
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_find_database'):
        db_d_find_database = _lib.db_d_find_database
        db_d_find_database.restype = c_int
        db_d_find_database.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 104
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_get_num_rows'):
        db_d_get_num_rows = _lib.db_d_get_num_rows
        db_d_get_num_rows.restype = c_int
        db_d_get_num_rows.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 105
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_grant_on_table'):
        db_d_grant_on_table = _lib.db_d_grant_on_table
        db_d_grant_on_table.restype = c_int
        db_d_grant_on_table.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 106
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_insert'):
        db_d_insert = _lib.db_d_insert
        db_d_insert.restype = c_int
        db_d_insert.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 107
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_init_error'):
        db_d_init_error = _lib.db_d_init_error
        db_d_init_error.restype = None
        db_d_init_error.argtypes = [String]
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 108
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_append_error'):
        _func = _lib.db_d_append_error
        _restype = None
        _argtypes = [String]
        db_d_append_error = _variadic_function(_func,_restype,_argtypes)

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 110
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_report_error'):
        db_d_report_error = _lib.db_d_report_error
        db_d_report_error.restype = None
        db_d_report_error.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 111
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_dirent'):
    db_dirent = _libs['grass_dbmibase.7.0.5'].db_dirent
    db_dirent.restype = POINTER(dbDirent)
    db_dirent.argtypes = [String, POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 112
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_list_databases'):
        db_d_list_databases = _lib.db_d_list_databases
        db_d_list_databases.restype = c_int
        db_d_list_databases.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 113
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_list_indexes'):
        db_d_list_indexes = _lib.db_d_list_indexes
        db_d_list_indexes.restype = c_int
        db_d_list_indexes.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 114
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_list_tables'):
        db_d_list_tables = _lib.db_d_list_tables
        db_d_list_tables.restype = c_int
        db_d_list_tables.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 115
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_open_database'):
        db_d_open_database = _lib.db_d_open_database
        db_d_open_database.restype = c_int
        db_d_open_database.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 116
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_open_insert_cursor'):
        db_d_open_insert_cursor = _lib.db_d_open_insert_cursor
        db_d_open_insert_cursor.restype = c_int
        db_d_open_insert_cursor.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 117
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_open_select_cursor'):
        db_d_open_select_cursor = _lib.db_d_open_select_cursor
        db_d_open_select_cursor.restype = c_int
        db_d_open_select_cursor.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 118
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_open_update_cursor'):
        db_d_open_update_cursor = _lib.db_d_open_update_cursor
        db_d_open_update_cursor.restype = c_int
        db_d_open_update_cursor.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 119
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_double_quote_string'):
    db_double_quote_string = _libs['grass_dbmibase.7.0.5'].db_double_quote_string
    db_double_quote_string.restype = None
    db_double_quote_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 120
for _lib in _libs.values():
    if hasattr(_lib, 'db_driver'):
        db_driver = _lib.db_driver
        db_driver.restype = c_int
        db_driver.argtypes = [c_int, POINTER(POINTER(c_char))]
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 122
for _lib in _libs.values():
    if hasattr(_lib, 'db_driver_mkdir'):
        db_driver_mkdir = _lib.db_driver_mkdir
        db_driver_mkdir.restype = c_int
        db_driver_mkdir.argtypes = [String, c_int, c_int]
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 123
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_drop_column'):
    db_drop_column = _libs['grass_dbmiclient.7.0.5'].db_drop_column
    db_drop_column.restype = c_int
    db_drop_column.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 125
for _lib in _libs.values():
    if hasattr(_lib, 'db__drop_cursor_from_driver_state'):
        db__drop_cursor_from_driver_state = _lib.db__drop_cursor_from_driver_state
        db__drop_cursor_from_driver_state.restype = None
        db__drop_cursor_from_driver_state.argtypes = [POINTER(dbCursor)]
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 126
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_drop_index'):
    db_drop_index = _libs['grass_dbmiclient.7.0.5'].db_drop_index
    db_drop_index.restype = c_int
    db_drop_index.argtypes = [POINTER(dbDriver), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 127
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_drop_table'):
    db_drop_table = _libs['grass_dbmiclient.7.0.5'].db_drop_table
    db_drop_table.restype = c_int
    db_drop_table.argtypes = [POINTER(dbDriver), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 128
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_drop_token'):
    db_drop_token = _libs['grass_dbmibase.7.0.5'].db_drop_token
    db_drop_token.restype = None
    db_drop_token.argtypes = [dbToken]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 129
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_update'):
        db_d_update = _lib.db_d_update
        db_d_update.restype = c_int
        db_d_update.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 130
for _lib in _libs.values():
    if hasattr(_lib, 'db_d_version'):
        db_d_version = _lib.db_d_version
        db_d_version.restype = c_int
        db_d_version.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 131
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_enlarge_string'):
    db_enlarge_string = _libs['grass_dbmibase.7.0.5'].db_enlarge_string
    db_enlarge_string.restype = c_int
    db_enlarge_string.argtypes = [POINTER(dbString), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 132
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_error'):
    db_error = _libs['grass_dbmibase.7.0.5'].db_error
    db_error.restype = None
    db_error.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 133
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_execute_immediate'):
    db_execute_immediate = _libs['grass_dbmiclient.7.0.5'].db_execute_immediate
    db_execute_immediate.restype = c_int
    db_execute_immediate.argtypes = [POINTER(dbDriver), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 134
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_begin_transaction'):
    db_begin_transaction = _libs['grass_dbmiclient.7.0.5'].db_begin_transaction
    db_begin_transaction.restype = c_int
    db_begin_transaction.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 135
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_commit_transaction'):
    db_commit_transaction = _libs['grass_dbmiclient.7.0.5'].db_commit_transaction
    db_commit_transaction.restype = c_int
    db_commit_transaction.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 136
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_fetch'):
    db_fetch = _libs['grass_dbmiclient.7.0.5'].db_fetch
    db_fetch.restype = c_int
    db_fetch.argtypes = [POINTER(dbCursor), c_int, POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 137
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_find_database'):
    db_find_database = _libs['grass_dbmiclient.7.0.5'].db_find_database
    db_find_database.restype = c_int
    db_find_database.argtypes = [POINTER(dbDriver), POINTER(dbHandle), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 138
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_find_token'):
    db_find_token = _libs['grass_dbmibase.7.0.5'].db_find_token
    db_find_token.restype = dbAddress
    db_find_token.argtypes = [dbToken]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 139
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free'):
    db_free = _libs['grass_dbmibase.7.0.5'].db_free
    db_free.restype = None
    db_free.argtypes = [POINTER(None)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 140
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_column'):
    db_free_column = _libs['grass_dbmibase.7.0.5'].db_free_column
    db_free_column.restype = None
    db_free_column.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 141
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_cursor'):
    db_free_cursor = _libs['grass_dbmibase.7.0.5'].db_free_cursor
    db_free_cursor.restype = None
    db_free_cursor.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 142
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_cursor_column_flags'):
    db_free_cursor_column_flags = _libs['grass_dbmibase.7.0.5'].db_free_cursor_column_flags
    db_free_cursor_column_flags.restype = None
    db_free_cursor_column_flags.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 143
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_dbmscap'):
    db_free_dbmscap = _libs['grass_dbmibase.7.0.5'].db_free_dbmscap
    db_free_dbmscap.restype = None
    db_free_dbmscap.argtypes = [POINTER(dbDbmscap)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 144
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_dirent_array'):
    db_free_dirent_array = _libs['grass_dbmibase.7.0.5'].db_free_dirent_array
    db_free_dirent_array.restype = None
    db_free_dirent_array.argtypes = [POINTER(dbDirent), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 145
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_handle'):
    db_free_handle = _libs['grass_dbmibase.7.0.5'].db_free_handle
    db_free_handle.restype = None
    db_free_handle.argtypes = [POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 146
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_handle_array'):
    db_free_handle_array = _libs['grass_dbmibase.7.0.5'].db_free_handle_array
    db_free_handle_array.restype = None
    db_free_handle_array.argtypes = [POINTER(dbHandle), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 147
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_index'):
    db_free_index = _libs['grass_dbmibase.7.0.5'].db_free_index
    db_free_index.restype = None
    db_free_index.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 148
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_index_array'):
    db_free_index_array = _libs['grass_dbmibase.7.0.5'].db_free_index_array
    db_free_index_array.restype = None
    db_free_index_array.argtypes = [POINTER(dbIndex), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 149
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_string'):
    db_free_string = _libs['grass_dbmibase.7.0.5'].db_free_string
    db_free_string.restype = None
    db_free_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 150
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_string_array'):
    db_free_string_array = _libs['grass_dbmibase.7.0.5'].db_free_string_array
    db_free_string_array.restype = None
    db_free_string_array.argtypes = [POINTER(dbString), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 151
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_free_table'):
    db_free_table = _libs['grass_dbmibase.7.0.5'].db_free_table
    db_free_table.restype = None
    db_free_table.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 152
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_get_column'):
    db_get_column = _libs['grass_dbmiclient.7.0.5'].db_get_column
    db_get_column.restype = c_int
    db_get_column.argtypes = [POINTER(dbDriver), String, String, POINTER(POINTER(dbColumn))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 154
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_default_value'):
    db_get_column_default_value = _libs['grass_dbmibase.7.0.5'].db_get_column_default_value
    db_get_column_default_value.restype = POINTER(dbValue)
    db_get_column_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 155
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_description'):
    db_get_column_description = _libs['grass_dbmibase.7.0.5'].db_get_column_description
    db_get_column_description.restype = ReturnString
    db_get_column_description.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 156
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_host_type'):
    db_get_column_host_type = _libs['grass_dbmibase.7.0.5'].db_get_column_host_type
    db_get_column_host_type.restype = c_int
    db_get_column_host_type.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 157
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_length'):
    db_get_column_length = _libs['grass_dbmibase.7.0.5'].db_get_column_length
    db_get_column_length.restype = c_int
    db_get_column_length.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 158
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_name'):
    db_get_column_name = _libs['grass_dbmibase.7.0.5'].db_get_column_name
    db_get_column_name.restype = ReturnString
    db_get_column_name.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 159
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_precision'):
    db_get_column_precision = _libs['grass_dbmibase.7.0.5'].db_get_column_precision
    db_get_column_precision.restype = c_int
    db_get_column_precision.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 160
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_scale'):
    db_get_column_scale = _libs['grass_dbmibase.7.0.5'].db_get_column_scale
    db_get_column_scale.restype = c_int
    db_get_column_scale.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 161
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_select_priv'):
    db_get_column_select_priv = _libs['grass_dbmibase.7.0.5'].db_get_column_select_priv
    db_get_column_select_priv.restype = c_int
    db_get_column_select_priv.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 162
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_sqltype'):
    db_get_column_sqltype = _libs['grass_dbmibase.7.0.5'].db_get_column_sqltype
    db_get_column_sqltype.restype = c_int
    db_get_column_sqltype.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 163
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_update_priv'):
    db_get_column_update_priv = _libs['grass_dbmibase.7.0.5'].db_get_column_update_priv
    db_get_column_update_priv.restype = c_int
    db_get_column_update_priv.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 164
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_column_value'):
    db_get_column_value = _libs['grass_dbmibase.7.0.5'].db_get_column_value
    db_get_column_value.restype = POINTER(dbValue)
    db_get_column_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 165
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_connection'):
    db_get_connection = _libs['grass_dbmibase.7.0.5'].db_get_connection
    db_get_connection.restype = c_int
    db_get_connection.argtypes = [POINTER(dbConnection)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 166
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_cursor_number_of_columns'):
    db_get_cursor_number_of_columns = _libs['grass_dbmibase.7.0.5'].db_get_cursor_number_of_columns
    db_get_cursor_number_of_columns.restype = c_int
    db_get_cursor_number_of_columns.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 167
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_cursor_table'):
    db_get_cursor_table = _libs['grass_dbmibase.7.0.5'].db_get_cursor_table
    db_get_cursor_table.restype = POINTER(dbTable)
    db_get_cursor_table.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 168
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_cursor_token'):
    db_get_cursor_token = _libs['grass_dbmibase.7.0.5'].db_get_cursor_token
    db_get_cursor_token.restype = dbToken
    db_get_cursor_token.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 169
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_default_driver_name'):
    db_get_default_driver_name = _libs['grass_dbmibase.7.0.5'].db_get_default_driver_name
    db_get_default_driver_name.restype = ReturnString
    db_get_default_driver_name.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 170
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_default_database_name'):
    db_get_default_database_name = _libs['grass_dbmibase.7.0.5'].db_get_default_database_name
    db_get_default_database_name.restype = ReturnString
    db_get_default_database_name.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 171
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_default_schema_name'):
    db_get_default_schema_name = _libs['grass_dbmibase.7.0.5'].db_get_default_schema_name
    db_get_default_schema_name.restype = ReturnString
    db_get_default_schema_name.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 172
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_default_group_name'):
    db_get_default_group_name = _libs['grass_dbmibase.7.0.5'].db_get_default_group_name
    db_get_default_group_name.restype = ReturnString
    db_get_default_group_name.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 173
for _lib in _libs.values():
    if hasattr(_lib, 'db__get_driver_state'):
        db__get_driver_state = _lib.db__get_driver_state
        db__get_driver_state.restype = POINTER(dbDriverState)
        db__get_driver_state.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 174
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_error_code'):
    db_get_error_code = _libs['grass_dbmibase.7.0.5'].db_get_error_code
    db_get_error_code.restype = c_int
    db_get_error_code.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 175
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_error_msg'):
    db_get_error_msg = _libs['grass_dbmibase.7.0.5'].db_get_error_msg
    db_get_error_msg.restype = ReturnString
    db_get_error_msg.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 176
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_error_who'):
    db_get_error_who = _libs['grass_dbmibase.7.0.5'].db_get_error_who
    db_get_error_who.restype = ReturnString
    db_get_error_who.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 177
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_handle_dbname'):
    db_get_handle_dbname = _libs['grass_dbmibase.7.0.5'].db_get_handle_dbname
    db_get_handle_dbname.restype = ReturnString
    db_get_handle_dbname.argtypes = [POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 178
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_handle_dbschema'):
    db_get_handle_dbschema = _libs['grass_dbmibase.7.0.5'].db_get_handle_dbschema
    db_get_handle_dbschema.restype = ReturnString
    db_get_handle_dbschema.argtypes = [POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 179
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_index_column_name'):
    db_get_index_column_name = _libs['grass_dbmibase.7.0.5'].db_get_index_column_name
    db_get_index_column_name.restype = ReturnString
    db_get_index_column_name.argtypes = [POINTER(dbIndex), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 180
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_index_name'):
    db_get_index_name = _libs['grass_dbmibase.7.0.5'].db_get_index_name
    db_get_index_name.restype = ReturnString
    db_get_index_name.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 181
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_index_number_of_columns'):
    db_get_index_number_of_columns = _libs['grass_dbmibase.7.0.5'].db_get_index_number_of_columns
    db_get_index_number_of_columns.restype = c_int
    db_get_index_number_of_columns.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 182
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_index_table_name'):
    db_get_index_table_name = _libs['grass_dbmibase.7.0.5'].db_get_index_table_name
    db_get_index_table_name.restype = ReturnString
    db_get_index_table_name.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 183
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_get_num_rows'):
    db_get_num_rows = _libs['grass_dbmiclient.7.0.5'].db_get_num_rows
    db_get_num_rows.restype = c_int
    db_get_num_rows.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 184
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_string'):
    db_get_string = _libs['grass_dbmibase.7.0.5'].db_get_string
    db_get_string.restype = ReturnString
    db_get_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 185
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_column'):
    db_get_table_column = _libs['grass_dbmibase.7.0.5'].db_get_table_column
    db_get_table_column.restype = POINTER(dbColumn)
    db_get_table_column.argtypes = [POINTER(dbTable), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 186
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_column_by_name'):
    db_get_table_column_by_name = _libs['grass_dbmibase.7.0.5'].db_get_table_column_by_name
    db_get_table_column_by_name.restype = POINTER(dbColumn)
    db_get_table_column_by_name.argtypes = [POINTER(dbTable), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 187
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_delete_priv'):
    db_get_table_delete_priv = _libs['grass_dbmibase.7.0.5'].db_get_table_delete_priv
    db_get_table_delete_priv.restype = c_int
    db_get_table_delete_priv.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 188
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_description'):
    db_get_table_description = _libs['grass_dbmibase.7.0.5'].db_get_table_description
    db_get_table_description.restype = ReturnString
    db_get_table_description.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 189
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_insert_priv'):
    db_get_table_insert_priv = _libs['grass_dbmibase.7.0.5'].db_get_table_insert_priv
    db_get_table_insert_priv.restype = c_int
    db_get_table_insert_priv.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 190
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_name'):
    db_get_table_name = _libs['grass_dbmibase.7.0.5'].db_get_table_name
    db_get_table_name.restype = ReturnString
    db_get_table_name.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 191
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_number_of_columns'):
    db_get_table_number_of_columns = _libs['grass_dbmibase.7.0.5'].db_get_table_number_of_columns
    db_get_table_number_of_columns.restype = c_int
    db_get_table_number_of_columns.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 192
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_get_table_number_of_rows'):
    db_get_table_number_of_rows = _libs['grass_dbmiclient.7.0.5'].db_get_table_number_of_rows
    db_get_table_number_of_rows.restype = c_int
    db_get_table_number_of_rows.argtypes = [POINTER(dbDriver), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 193
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_select_priv'):
    db_get_table_select_priv = _libs['grass_dbmibase.7.0.5'].db_get_table_select_priv
    db_get_table_select_priv.restype = c_int
    db_get_table_select_priv.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 194
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_table_update_priv'):
    db_get_table_update_priv = _libs['grass_dbmibase.7.0.5'].db_get_table_update_priv
    db_get_table_update_priv.restype = c_int
    db_get_table_update_priv.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 195
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_as_double'):
    db_get_value_as_double = _libs['grass_dbmibase.7.0.5'].db_get_value_as_double
    db_get_value_as_double.restype = c_double
    db_get_value_as_double.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 196
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_day'):
    db_get_value_day = _libs['grass_dbmibase.7.0.5'].db_get_value_day
    db_get_value_day.restype = c_int
    db_get_value_day.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 197
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_double'):
    db_get_value_double = _libs['grass_dbmibase.7.0.5'].db_get_value_double
    db_get_value_double.restype = c_double
    db_get_value_double.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 198
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_hour'):
    db_get_value_hour = _libs['grass_dbmibase.7.0.5'].db_get_value_hour
    db_get_value_hour.restype = c_int
    db_get_value_hour.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 199
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_int'):
    db_get_value_int = _libs['grass_dbmibase.7.0.5'].db_get_value_int
    db_get_value_int.restype = c_int
    db_get_value_int.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 200
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_minute'):
    db_get_value_minute = _libs['grass_dbmibase.7.0.5'].db_get_value_minute
    db_get_value_minute.restype = c_int
    db_get_value_minute.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 201
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_month'):
    db_get_value_month = _libs['grass_dbmibase.7.0.5'].db_get_value_month
    db_get_value_month.restype = c_int
    db_get_value_month.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 202
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_seconds'):
    db_get_value_seconds = _libs['grass_dbmibase.7.0.5'].db_get_value_seconds
    db_get_value_seconds.restype = c_double
    db_get_value_seconds.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 203
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_string'):
    db_get_value_string = _libs['grass_dbmibase.7.0.5'].db_get_value_string
    db_get_value_string.restype = ReturnString
    db_get_value_string.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 204
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_value_year'):
    db_get_value_year = _libs['grass_dbmibase.7.0.5'].db_get_value_year
    db_get_value_year.restype = c_int
    db_get_value_year.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 205
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_grant_on_table'):
    db_grant_on_table = _libs['grass_dbmiclient.7.0.5'].db_grant_on_table
    db_grant_on_table.restype = c_int
    db_grant_on_table.argtypes = [POINTER(dbDriver), String, c_int, c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 207
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_has_dbms'):
    db_has_dbms = _libs['grass_dbmibase.7.0.5'].db_has_dbms
    db_has_dbms.restype = c_int
    db_has_dbms.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 208
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_init_column'):
    db_init_column = _libs['grass_dbmibase.7.0.5'].db_init_column
    db_init_column.restype = None
    db_init_column.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 209
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_init_cursor'):
    db_init_cursor = _libs['grass_dbmibase.7.0.5'].db_init_cursor
    db_init_cursor.restype = None
    db_init_cursor.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 210
for _lib in _libs.values():
    if hasattr(_lib, 'db__init_driver_state'):
        db__init_driver_state = _lib.db__init_driver_state
        db__init_driver_state.restype = None
        db__init_driver_state.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 211
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_init_handle'):
    db_init_handle = _libs['grass_dbmibase.7.0.5'].db_init_handle
    db_init_handle.restype = None
    db_init_handle.argtypes = [POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 212
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_init_index'):
    db_init_index = _libs['grass_dbmibase.7.0.5'].db_init_index
    db_init_index.restype = None
    db_init_index.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 213
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_init_string'):
    db_init_string = _libs['grass_dbmibase.7.0.5'].db_init_string
    db_init_string.restype = None
    db_init_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 214
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_init_table'):
    db_init_table = _libs['grass_dbmibase.7.0.5'].db_init_table
    db_init_table.restype = None
    db_init_table.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 215
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_insert'):
    db_insert = _libs['grass_dbmiclient.7.0.5'].db_insert
    db_insert.restype = c_int
    db_insert.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 216
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_interval_range'):
    db_interval_range = _libs['grass_dbmibase.7.0.5'].db_interval_range
    db_interval_range.restype = None
    db_interval_range.argtypes = [c_int, POINTER(c_int), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 217
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_isdir'):
    db_isdir = _libs['grass_dbmibase.7.0.5'].db_isdir
    db_isdir.restype = c_int
    db_isdir.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 218
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_legal_tablename'):
    db_legal_tablename = _libs['grass_dbmibase.7.0.5'].db_legal_tablename
    db_legal_tablename.restype = c_int
    db_legal_tablename.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 219
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_list_databases'):
    db_list_databases = _libs['grass_dbmiclient.7.0.5'].db_list_databases
    db_list_databases.restype = c_int
    db_list_databases.argtypes = [POINTER(dbDriver), POINTER(dbString), c_int, POINTER(POINTER(dbHandle)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 221
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_list_drivers'):
    db_list_drivers = _libs['grass_dbmiclient.7.0.5'].db_list_drivers
    db_list_drivers.restype = ReturnString
    db_list_drivers.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 222
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_list_indexes'):
    db_list_indexes = _libs['grass_dbmiclient.7.0.5'].db_list_indexes
    db_list_indexes.restype = c_int
    db_list_indexes.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(POINTER(dbIndex)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 224
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_list_tables'):
    db_list_tables = _libs['grass_dbmiclient.7.0.5'].db_list_tables
    db_list_tables.restype = c_int
    db_list_tables.argtypes = [POINTER(dbDriver), POINTER(POINTER(dbString)), POINTER(c_int), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 226
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_malloc'):
    db_malloc = _libs['grass_dbmibase.7.0.5'].db_malloc
    db_malloc.restype = POINTER(None)
    db_malloc.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 227
for _lib in _libs.values():
    if hasattr(_lib, 'db__mark_database_closed'):
        db__mark_database_closed = _lib.db__mark_database_closed
        db__mark_database_closed.restype = None
        db__mark_database_closed.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 228
for _lib in _libs.values():
    if hasattr(_lib, 'db__mark_database_open'):
        db__mark_database_open = _lib.db__mark_database_open
        db__mark_database_open.restype = None
        db__mark_database_open.argtypes = [String, String]
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 229
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_memory_error'):
    db_memory_error = _libs['grass_dbmibase.7.0.5'].db_memory_error
    db_memory_error.restype = None
    db_memory_error.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 230
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_new_token'):
    db_new_token = _libs['grass_dbmibase.7.0.5'].db_new_token
    db_new_token.restype = dbToken
    db_new_token.argtypes = [dbAddress]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 231
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_nocase_compare'):
    db_nocase_compare = _libs['grass_dbmibase.7.0.5'].db_nocase_compare
    db_nocase_compare.restype = c_int
    db_nocase_compare.argtypes = [String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 232
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_noproc_error'):
    db_noproc_error = _libs['grass_dbmibase.7.0.5'].db_noproc_error
    db_noproc_error.restype = None
    db_noproc_error.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 233
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_open_database'):
    db_open_database = _libs['grass_dbmiclient.7.0.5'].db_open_database
    db_open_database.restype = c_int
    db_open_database.argtypes = [POINTER(dbDriver), POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 234
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_open_insert_cursor'):
    db_open_insert_cursor = _libs['grass_dbmiclient.7.0.5'].db_open_insert_cursor
    db_open_insert_cursor.restype = c_int
    db_open_insert_cursor.argtypes = [POINTER(dbDriver), POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 235
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_open_select_cursor'):
    db_open_select_cursor = _libs['grass_dbmiclient.7.0.5'].db_open_select_cursor
    db_open_select_cursor.restype = c_int
    db_open_select_cursor.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 237
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_open_update_cursor'):
    db_open_update_cursor = _libs['grass_dbmiclient.7.0.5'].db_open_update_cursor
    db_open_update_cursor.restype = c_int
    db_open_update_cursor.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(dbString), POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 239
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_print_column_definition'):
    db_print_column_definition = _libs['grass_dbmiclient.7.0.5'].db_print_column_definition
    db_print_column_definition.restype = None
    db_print_column_definition.argtypes = [POINTER(FILE), POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 240
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_print_error'):
    db_print_error = _libs['grass_dbmibase.7.0.5'].db_print_error
    db_print_error.restype = None
    db_print_error.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 241
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_print_index'):
    db_print_index = _libs['grass_dbmibase.7.0.5'].db_print_index
    db_print_index.restype = None
    db_print_index.argtypes = [POINTER(FILE), POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 242
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_print_table_definition'):
    db_print_table_definition = _libs['grass_dbmiclient.7.0.5'].db_print_table_definition
    db_print_table_definition.restype = None
    db_print_table_definition.argtypes = [POINTER(FILE), POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 243
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_procedure_not_implemented'):
    db_procedure_not_implemented = _libs['grass_dbmibase.7.0.5'].db_procedure_not_implemented
    db_procedure_not_implemented.restype = None
    db_procedure_not_implemented.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 244
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_protocol_error'):
    db_protocol_error = _libs['grass_dbmibase.7.0.5'].db_protocol_error
    db_protocol_error.restype = None
    db_protocol_error.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 245
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_read_dbmscap'):
    db_read_dbmscap = _libs['grass_dbmibase.7.0.5'].db_read_dbmscap
    db_read_dbmscap.restype = POINTER(dbDbmscap)
    db_read_dbmscap.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 246
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_realloc'):
    db_realloc = _libs['grass_dbmibase.7.0.5'].db_realloc
    db_realloc.restype = POINTER(None)
    db_realloc.argtypes = [POINTER(None), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 247
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_char'):
    db__recv_char = _libs['grass_dbmibase.7.0.5'].db__recv_char
    db__recv_char.restype = c_int
    db__recv_char.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 248
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_column_default_value'):
    db__recv_column_default_value = _libs['grass_dbmibase.7.0.5'].db__recv_column_default_value
    db__recv_column_default_value.restype = c_int
    db__recv_column_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 249
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_column_definition'):
    db__recv_column_definition = _libs['grass_dbmibase.7.0.5'].db__recv_column_definition
    db__recv_column_definition.restype = c_int
    db__recv_column_definition.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 250
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_column_value'):
    db__recv_column_value = _libs['grass_dbmibase.7.0.5'].db__recv_column_value
    db__recv_column_value.restype = c_int
    db__recv_column_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 251
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_datetime'):
    db__recv_datetime = _libs['grass_dbmibase.7.0.5'].db__recv_datetime
    db__recv_datetime.restype = c_int
    db__recv_datetime.argtypes = [POINTER(dbDateTime)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 252
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_double'):
    db__recv_double = _libs['grass_dbmibase.7.0.5'].db__recv_double
    db__recv_double.restype = c_int
    db__recv_double.argtypes = [POINTER(c_double)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 253
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_double_array'):
    db__recv_double_array = _libs['grass_dbmibase.7.0.5'].db__recv_double_array
    db__recv_double_array.restype = c_int
    db__recv_double_array.argtypes = [POINTER(POINTER(c_double)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 254
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_float'):
    db__recv_float = _libs['grass_dbmibase.7.0.5'].db__recv_float
    db__recv_float.restype = c_int
    db__recv_float.argtypes = [POINTER(c_float)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 255
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_float_array'):
    db__recv_float_array = _libs['grass_dbmibase.7.0.5'].db__recv_float_array
    db__recv_float_array.restype = c_int
    db__recv_float_array.argtypes = [POINTER(POINTER(c_float)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 256
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_handle'):
    db__recv_handle = _libs['grass_dbmibase.7.0.5'].db__recv_handle
    db__recv_handle.restype = c_int
    db__recv_handle.argtypes = [POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 257
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_index'):
    db__recv_index = _libs['grass_dbmibase.7.0.5'].db__recv_index
    db__recv_index.restype = c_int
    db__recv_index.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 258
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_index_array'):
    db__recv_index_array = _libs['grass_dbmibase.7.0.5'].db__recv_index_array
    db__recv_index_array.restype = c_int
    db__recv_index_array.argtypes = [POINTER(POINTER(dbIndex)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 259
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_int'):
    db__recv_int = _libs['grass_dbmibase.7.0.5'].db__recv_int
    db__recv_int.restype = c_int
    db__recv_int.argtypes = [POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 260
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_int_array'):
    db__recv_int_array = _libs['grass_dbmibase.7.0.5'].db__recv_int_array
    db__recv_int_array.restype = c_int
    db__recv_int_array.argtypes = [POINTER(POINTER(c_int)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 261
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_procnum'):
    db__recv_procnum = _libs['grass_dbmibase.7.0.5'].db__recv_procnum
    db__recv_procnum.restype = c_int
    db__recv_procnum.argtypes = [POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 262
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_return_code'):
    db__recv_return_code = _libs['grass_dbmibase.7.0.5'].db__recv_return_code
    db__recv_return_code.restype = c_int
    db__recv_return_code.argtypes = [POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 263
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_short'):
    db__recv_short = _libs['grass_dbmibase.7.0.5'].db__recv_short
    db__recv_short.restype = c_int
    db__recv_short.argtypes = [POINTER(c_short)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 264
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_short_array'):
    db__recv_short_array = _libs['grass_dbmibase.7.0.5'].db__recv_short_array
    db__recv_short_array.restype = c_int
    db__recv_short_array.argtypes = [POINTER(POINTER(c_short)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 265
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_string'):
    db__recv_string = _libs['grass_dbmibase.7.0.5'].db__recv_string
    db__recv_string.restype = c_int
    db__recv_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 266
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_string_array'):
    db__recv_string_array = _libs['grass_dbmibase.7.0.5'].db__recv_string_array
    db__recv_string_array.restype = c_int
    db__recv_string_array.argtypes = [POINTER(POINTER(dbString)), POINTER(c_int)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 267
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_table_data'):
    db__recv_table_data = _libs['grass_dbmibase.7.0.5'].db__recv_table_data
    db__recv_table_data.restype = c_int
    db__recv_table_data.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 268
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_table_definition'):
    db__recv_table_definition = _libs['grass_dbmibase.7.0.5'].db__recv_table_definition
    db__recv_table_definition.restype = c_int
    db__recv_table_definition.argtypes = [POINTER(POINTER(dbTable))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 269
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_token'):
    db__recv_token = _libs['grass_dbmibase.7.0.5'].db__recv_token
    db__recv_token.restype = c_int
    db__recv_token.argtypes = [POINTER(dbToken)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 270
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__recv_value'):
    db__recv_value = _libs['grass_dbmibase.7.0.5'].db__recv_value
    db__recv_value.restype = c_int
    db__recv_value.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 271
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_Cstring'):
    db__send_Cstring = _libs['grass_dbmibase.7.0.5'].db__send_Cstring
    db__send_Cstring.restype = c_int
    db__send_Cstring.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 272
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_char'):
    db__send_char = _libs['grass_dbmibase.7.0.5'].db__send_char
    db__send_char.restype = c_int
    db__send_char.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 273
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_column_default_value'):
    db__send_column_default_value = _libs['grass_dbmibase.7.0.5'].db__send_column_default_value
    db__send_column_default_value.restype = c_int
    db__send_column_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 274
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_column_definition'):
    db__send_column_definition = _libs['grass_dbmibase.7.0.5'].db__send_column_definition
    db__send_column_definition.restype = c_int
    db__send_column_definition.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 275
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_column_value'):
    db__send_column_value = _libs['grass_dbmibase.7.0.5'].db__send_column_value
    db__send_column_value.restype = c_int
    db__send_column_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 276
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_datetime'):
    db__send_datetime = _libs['grass_dbmibase.7.0.5'].db__send_datetime
    db__send_datetime.restype = c_int
    db__send_datetime.argtypes = [POINTER(dbDateTime)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 277
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_double'):
    db__send_double = _libs['grass_dbmibase.7.0.5'].db__send_double
    db__send_double.restype = c_int
    db__send_double.argtypes = [c_double]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 278
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_double_array'):
    db__send_double_array = _libs['grass_dbmibase.7.0.5'].db__send_double_array
    db__send_double_array.restype = c_int
    db__send_double_array.argtypes = [POINTER(c_double), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 279
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_failure'):
    db__send_failure = _libs['grass_dbmibase.7.0.5'].db__send_failure
    db__send_failure.restype = c_int
    db__send_failure.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 280
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_float'):
    db__send_float = _libs['grass_dbmibase.7.0.5'].db__send_float
    db__send_float.restype = c_int
    db__send_float.argtypes = [c_float]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 281
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_float_array'):
    db__send_float_array = _libs['grass_dbmibase.7.0.5'].db__send_float_array
    db__send_float_array.restype = c_int
    db__send_float_array.argtypes = [POINTER(c_float), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 282
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_handle'):
    db__send_handle = _libs['grass_dbmibase.7.0.5'].db__send_handle
    db__send_handle.restype = c_int
    db__send_handle.argtypes = [POINTER(dbHandle)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 283
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_index'):
    db__send_index = _libs['grass_dbmibase.7.0.5'].db__send_index
    db__send_index.restype = c_int
    db__send_index.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 284
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_index_array'):
    db__send_index_array = _libs['grass_dbmibase.7.0.5'].db__send_index_array
    db__send_index_array.restype = c_int
    db__send_index_array.argtypes = [POINTER(dbIndex), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 285
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_int'):
    db__send_int = _libs['grass_dbmibase.7.0.5'].db__send_int
    db__send_int.restype = c_int
    db__send_int.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 286
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_int_array'):
    db__send_int_array = _libs['grass_dbmibase.7.0.5'].db__send_int_array
    db__send_int_array.restype = c_int
    db__send_int_array.argtypes = [POINTER(c_int), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 287
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_procedure_not_implemented'):
    db__send_procedure_not_implemented = _libs['grass_dbmibase.7.0.5'].db__send_procedure_not_implemented
    db__send_procedure_not_implemented.restype = c_int
    db__send_procedure_not_implemented.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 288
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_procedure_ok'):
    db__send_procedure_ok = _libs['grass_dbmibase.7.0.5'].db__send_procedure_ok
    db__send_procedure_ok.restype = c_int
    db__send_procedure_ok.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 289
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_short'):
    db__send_short = _libs['grass_dbmibase.7.0.5'].db__send_short
    db__send_short.restype = c_int
    db__send_short.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 290
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_short_array'):
    db__send_short_array = _libs['grass_dbmibase.7.0.5'].db__send_short_array
    db__send_short_array.restype = c_int
    db__send_short_array.argtypes = [POINTER(c_short), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 291
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_string'):
    db__send_string = _libs['grass_dbmibase.7.0.5'].db__send_string
    db__send_string.restype = c_int
    db__send_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 292
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_string_array'):
    db__send_string_array = _libs['grass_dbmibase.7.0.5'].db__send_string_array
    db__send_string_array.restype = c_int
    db__send_string_array.argtypes = [POINTER(dbString), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 293
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_success'):
    db__send_success = _libs['grass_dbmibase.7.0.5'].db__send_success
    db__send_success.restype = c_int
    db__send_success.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 294
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_table_data'):
    db__send_table_data = _libs['grass_dbmibase.7.0.5'].db__send_table_data
    db__send_table_data.restype = c_int
    db__send_table_data.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 295
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_table_definition'):
    db__send_table_definition = _libs['grass_dbmibase.7.0.5'].db__send_table_definition
    db__send_table_definition.restype = c_int
    db__send_table_definition.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 296
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_token'):
    db__send_token = _libs['grass_dbmibase.7.0.5'].db__send_token
    db__send_token.restype = c_int
    db__send_token.argtypes = [POINTER(dbToken)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 297
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__send_value'):
    db__send_value = _libs['grass_dbmibase.7.0.5'].db__send_value
    db__send_value.restype = c_int
    db__send_value.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 298
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_select_CatValArray'):
    db_select_CatValArray = _libs['grass_dbmiclient.7.0.5'].db_select_CatValArray
    db_select_CatValArray.restype = c_int
    db_select_CatValArray.argtypes = [POINTER(dbDriver), String, String, String, String, POINTER(dbCatValArray)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 301
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_select_int'):
    db_select_int = _libs['grass_dbmiclient.7.0.5'].db_select_int
    db_select_int.restype = c_int
    db_select_int.argtypes = [POINTER(dbDriver), String, String, String, POINTER(POINTER(c_int))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 303
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_select_value'):
    db_select_value = _libs['grass_dbmiclient.7.0.5'].db_select_value
    db_select_value.restype = c_int
    db_select_value.argtypes = [POINTER(dbDriver), String, String, c_int, String, POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 305
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_description'):
    db_set_column_description = _libs['grass_dbmibase.7.0.5'].db_set_column_description
    db_set_column_description.restype = c_int
    db_set_column_description.argtypes = [POINTER(dbColumn), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 306
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_has_defined_default_value'):
    db_set_column_has_defined_default_value = _libs['grass_dbmibase.7.0.5'].db_set_column_has_defined_default_value
    db_set_column_has_defined_default_value.restype = None
    db_set_column_has_defined_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 307
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_has_undefined_default_value'):
    db_set_column_has_undefined_default_value = _libs['grass_dbmibase.7.0.5'].db_set_column_has_undefined_default_value
    db_set_column_has_undefined_default_value.restype = None
    db_set_column_has_undefined_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 308
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_host_type'):
    db_set_column_host_type = _libs['grass_dbmibase.7.0.5'].db_set_column_host_type
    db_set_column_host_type.restype = None
    db_set_column_host_type.argtypes = [POINTER(dbColumn), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 309
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_length'):
    db_set_column_length = _libs['grass_dbmibase.7.0.5'].db_set_column_length
    db_set_column_length.restype = None
    db_set_column_length.argtypes = [POINTER(dbColumn), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 310
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_name'):
    db_set_column_name = _libs['grass_dbmibase.7.0.5'].db_set_column_name
    db_set_column_name.restype = c_int
    db_set_column_name.argtypes = [POINTER(dbColumn), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 311
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_null_allowed'):
    db_set_column_null_allowed = _libs['grass_dbmibase.7.0.5'].db_set_column_null_allowed
    db_set_column_null_allowed.restype = None
    db_set_column_null_allowed.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 312
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_precision'):
    db_set_column_precision = _libs['grass_dbmibase.7.0.5'].db_set_column_precision
    db_set_column_precision.restype = None
    db_set_column_precision.argtypes = [POINTER(dbColumn), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 313
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_scale'):
    db_set_column_scale = _libs['grass_dbmibase.7.0.5'].db_set_column_scale
    db_set_column_scale.restype = None
    db_set_column_scale.argtypes = [POINTER(dbColumn), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 314
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_select_priv_granted'):
    db_set_column_select_priv_granted = _libs['grass_dbmibase.7.0.5'].db_set_column_select_priv_granted
    db_set_column_select_priv_granted.restype = None
    db_set_column_select_priv_granted.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 315
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_select_priv_not_granted'):
    db_set_column_select_priv_not_granted = _libs['grass_dbmibase.7.0.5'].db_set_column_select_priv_not_granted
    db_set_column_select_priv_not_granted.restype = None
    db_set_column_select_priv_not_granted.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 316
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_sqltype'):
    db_set_column_sqltype = _libs['grass_dbmibase.7.0.5'].db_set_column_sqltype
    db_set_column_sqltype.restype = None
    db_set_column_sqltype.argtypes = [POINTER(dbColumn), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 317
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_update_priv_granted'):
    db_set_column_update_priv_granted = _libs['grass_dbmibase.7.0.5'].db_set_column_update_priv_granted
    db_set_column_update_priv_granted.restype = None
    db_set_column_update_priv_granted.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 318
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_update_priv_not_granted'):
    db_set_column_update_priv_not_granted = _libs['grass_dbmibase.7.0.5'].db_set_column_update_priv_not_granted
    db_set_column_update_priv_not_granted.restype = None
    db_set_column_update_priv_not_granted.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 319
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_column_use_default_value'):
    db_set_column_use_default_value = _libs['grass_dbmibase.7.0.5'].db_set_column_use_default_value
    db_set_column_use_default_value.restype = None
    db_set_column_use_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 320
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_connection'):
    db_set_connection = _libs['grass_dbmibase.7.0.5'].db_set_connection
    db_set_connection.restype = c_int
    db_set_connection.argtypes = [POINTER(dbConnection)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 321
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_column_flag'):
    db_set_cursor_column_flag = _libs['grass_dbmibase.7.0.5'].db_set_cursor_column_flag
    db_set_cursor_column_flag.restype = None
    db_set_cursor_column_flag.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 322
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_column_for_update'):
    db_set_cursor_column_for_update = _libs['grass_dbmibase.7.0.5'].db_set_cursor_column_for_update
    db_set_cursor_column_for_update.restype = None
    db_set_cursor_column_for_update.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 323
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_mode'):
    db_set_cursor_mode = _libs['grass_dbmibase.7.0.5'].db_set_cursor_mode
    db_set_cursor_mode.restype = None
    db_set_cursor_mode.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 324
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_mode_insensitive'):
    db_set_cursor_mode_insensitive = _libs['grass_dbmibase.7.0.5'].db_set_cursor_mode_insensitive
    db_set_cursor_mode_insensitive.restype = None
    db_set_cursor_mode_insensitive.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 325
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_mode_scroll'):
    db_set_cursor_mode_scroll = _libs['grass_dbmibase.7.0.5'].db_set_cursor_mode_scroll
    db_set_cursor_mode_scroll.restype = None
    db_set_cursor_mode_scroll.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 326
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_table'):
    db_set_cursor_table = _libs['grass_dbmibase.7.0.5'].db_set_cursor_table
    db_set_cursor_table.restype = None
    db_set_cursor_table.argtypes = [POINTER(dbCursor), POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 327
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_token'):
    db_set_cursor_token = _libs['grass_dbmibase.7.0.5'].db_set_cursor_token
    db_set_cursor_token.restype = None
    db_set_cursor_token.argtypes = [POINTER(dbCursor), dbToken]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 328
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_type_insert'):
    db_set_cursor_type_insert = _libs['grass_dbmibase.7.0.5'].db_set_cursor_type_insert
    db_set_cursor_type_insert.restype = None
    db_set_cursor_type_insert.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 329
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_type_readonly'):
    db_set_cursor_type_readonly = _libs['grass_dbmibase.7.0.5'].db_set_cursor_type_readonly
    db_set_cursor_type_readonly.restype = None
    db_set_cursor_type_readonly.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 330
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_cursor_type_update'):
    db_set_cursor_type_update = _libs['grass_dbmibase.7.0.5'].db_set_cursor_type_update
    db_set_cursor_type_update.restype = None
    db_set_cursor_type_update.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 331
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_default_connection'):
    db_set_default_connection = _libs['grass_dbmibase.7.0.5'].db_set_default_connection
    db_set_default_connection.restype = c_int
    db_set_default_connection.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 332
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_error_who'):
    db_set_error_who = _libs['grass_dbmibase.7.0.5'].db_set_error_who
    db_set_error_who.restype = None
    db_set_error_who.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 333
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_handle'):
    db_set_handle = _libs['grass_dbmibase.7.0.5'].db_set_handle
    db_set_handle.restype = c_int
    db_set_handle.argtypes = [POINTER(dbHandle), String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 334
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_set_error_handler_driver'):
    db_set_error_handler_driver = _libs['grass_dbmiclient.7.0.5'].db_set_error_handler_driver
    db_set_error_handler_driver.restype = None
    db_set_error_handler_driver.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 335
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_unset_error_handler_driver'):
    db_unset_error_handler_driver = _libs['grass_dbmiclient.7.0.5'].db_unset_error_handler_driver
    db_unset_error_handler_driver.restype = None
    db_unset_error_handler_driver.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 336
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_index_column_name'):
    db_set_index_column_name = _libs['grass_dbmibase.7.0.5'].db_set_index_column_name
    db_set_index_column_name.restype = c_int
    db_set_index_column_name.argtypes = [POINTER(dbIndex), c_int, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 338
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_index_name'):
    db_set_index_name = _libs['grass_dbmibase.7.0.5'].db_set_index_name
    db_set_index_name.restype = c_int
    db_set_index_name.argtypes = [POINTER(dbIndex), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 339
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_index_table_name'):
    db_set_index_table_name = _libs['grass_dbmibase.7.0.5'].db_set_index_table_name
    db_set_index_table_name.restype = c_int
    db_set_index_table_name.argtypes = [POINTER(dbIndex), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 340
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_index_type_non_unique'):
    db_set_index_type_non_unique = _libs['grass_dbmibase.7.0.5'].db_set_index_type_non_unique
    db_set_index_type_non_unique.restype = c_int
    db_set_index_type_non_unique.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 341
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_index_type_unique'):
    db_set_index_type_unique = _libs['grass_dbmibase.7.0.5'].db_set_index_type_unique
    db_set_index_type_unique.restype = c_int
    db_set_index_type_unique.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 342
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__set_protocol_fds'):
    db__set_protocol_fds = _libs['grass_dbmibase.7.0.5'].db__set_protocol_fds
    db__set_protocol_fds.restype = None
    db__set_protocol_fds.argtypes = [POINTER(FILE), POINTER(FILE)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 343
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_string'):
    db_set_string = _libs['grass_dbmibase.7.0.5'].db_set_string
    db_set_string.restype = c_int
    db_set_string.argtypes = [POINTER(dbString), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 344
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_string_no_copy'):
    db_set_string_no_copy = _libs['grass_dbmibase.7.0.5'].db_set_string_no_copy
    db_set_string_no_copy.restype = c_int
    db_set_string_no_copy.argtypes = [POINTER(dbString), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 345
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_column'):
    db_set_table_column = _libs['grass_dbmibase.7.0.5'].db_set_table_column
    db_set_table_column.restype = c_int
    db_set_table_column.argtypes = [POINTER(dbTable), c_int, POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 346
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_delete_priv_granted'):
    db_set_table_delete_priv_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_delete_priv_granted
    db_set_table_delete_priv_granted.restype = None
    db_set_table_delete_priv_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 347
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_delete_priv_not_granted'):
    db_set_table_delete_priv_not_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_delete_priv_not_granted
    db_set_table_delete_priv_not_granted.restype = None
    db_set_table_delete_priv_not_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 348
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_description'):
    db_set_table_description = _libs['grass_dbmibase.7.0.5'].db_set_table_description
    db_set_table_description.restype = c_int
    db_set_table_description.argtypes = [POINTER(dbTable), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 349
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_insert_priv_granted'):
    db_set_table_insert_priv_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_insert_priv_granted
    db_set_table_insert_priv_granted.restype = None
    db_set_table_insert_priv_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 350
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_insert_priv_not_granted'):
    db_set_table_insert_priv_not_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_insert_priv_not_granted
    db_set_table_insert_priv_not_granted.restype = None
    db_set_table_insert_priv_not_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 351
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_name'):
    db_set_table_name = _libs['grass_dbmibase.7.0.5'].db_set_table_name
    db_set_table_name.restype = c_int
    db_set_table_name.argtypes = [POINTER(dbTable), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 352
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_select_priv_granted'):
    db_set_table_select_priv_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_select_priv_granted
    db_set_table_select_priv_granted.restype = None
    db_set_table_select_priv_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 353
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_select_priv_not_granted'):
    db_set_table_select_priv_not_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_select_priv_not_granted
    db_set_table_select_priv_not_granted.restype = None
    db_set_table_select_priv_not_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 354
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_update_priv_granted'):
    db_set_table_update_priv_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_update_priv_granted
    db_set_table_update_priv_granted.restype = None
    db_set_table_update_priv_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 355
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_table_update_priv_not_granted'):
    db_set_table_update_priv_not_granted = _libs['grass_dbmibase.7.0.5'].db_set_table_update_priv_not_granted
    db_set_table_update_priv_not_granted.restype = None
    db_set_table_update_priv_not_granted.argtypes = [POINTER(dbTable)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 356
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_datetime_current'):
    db_set_value_datetime_current = _libs['grass_dbmibase.7.0.5'].db_set_value_datetime_current
    db_set_value_datetime_current.restype = None
    db_set_value_datetime_current.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 357
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_datetime_not_current'):
    db_set_value_datetime_not_current = _libs['grass_dbmibase.7.0.5'].db_set_value_datetime_not_current
    db_set_value_datetime_not_current.restype = None
    db_set_value_datetime_not_current.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 358
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_day'):
    db_set_value_day = _libs['grass_dbmibase.7.0.5'].db_set_value_day
    db_set_value_day.restype = None
    db_set_value_day.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 359
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_double'):
    db_set_value_double = _libs['grass_dbmibase.7.0.5'].db_set_value_double
    db_set_value_double.restype = None
    db_set_value_double.argtypes = [POINTER(dbValue), c_double]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 360
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_hour'):
    db_set_value_hour = _libs['grass_dbmibase.7.0.5'].db_set_value_hour
    db_set_value_hour.restype = None
    db_set_value_hour.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 361
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_int'):
    db_set_value_int = _libs['grass_dbmibase.7.0.5'].db_set_value_int
    db_set_value_int.restype = None
    db_set_value_int.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 362
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_minute'):
    db_set_value_minute = _libs['grass_dbmibase.7.0.5'].db_set_value_minute
    db_set_value_minute.restype = None
    db_set_value_minute.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 363
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_month'):
    db_set_value_month = _libs['grass_dbmibase.7.0.5'].db_set_value_month
    db_set_value_month.restype = None
    db_set_value_month.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 364
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_not_null'):
    db_set_value_not_null = _libs['grass_dbmibase.7.0.5'].db_set_value_not_null
    db_set_value_not_null.restype = None
    db_set_value_not_null.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 365
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_null'):
    db_set_value_null = _libs['grass_dbmibase.7.0.5'].db_set_value_null
    db_set_value_null.restype = None
    db_set_value_null.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 366
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_seconds'):
    db_set_value_seconds = _libs['grass_dbmibase.7.0.5'].db_set_value_seconds
    db_set_value_seconds.restype = None
    db_set_value_seconds.argtypes = [POINTER(dbValue), c_double]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 367
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_string'):
    db_set_value_string = _libs['grass_dbmibase.7.0.5'].db_set_value_string
    db_set_value_string.restype = c_int
    db_set_value_string.argtypes = [POINTER(dbValue), String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 368
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_value_year'):
    db_set_value_year = _libs['grass_dbmibase.7.0.5'].db_set_value_year
    db_set_value_year.restype = None
    db_set_value_year.argtypes = [POINTER(dbValue), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 369
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_shutdown_driver'):
    db_shutdown_driver = _libs['grass_dbmiclient.7.0.5'].db_shutdown_driver
    db_shutdown_driver.restype = c_int
    db_shutdown_driver.argtypes = [POINTER(dbDriver)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 370
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_sqltype_name'):
    db_sqltype_name = _libs['grass_dbmibase.7.0.5'].db_sqltype_name
    db_sqltype_name.restype = ReturnString
    db_sqltype_name.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 371
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_sqltype_to_Ctype'):
    db_sqltype_to_Ctype = _libs['grass_dbmibase.7.0.5'].db_sqltype_to_Ctype
    db_sqltype_to_Ctype.restype = c_int
    db_sqltype_to_Ctype.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 372
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_start_driver'):
    db_start_driver = _libs['grass_dbmiclient.7.0.5'].db_start_driver
    db_start_driver.restype = POINTER(dbDriver)
    db_start_driver.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 373
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_start_driver_open_database'):
    db_start_driver_open_database = _libs['grass_dbmiclient.7.0.5'].db_start_driver_open_database
    db_start_driver_open_database.restype = POINTER(dbDriver)
    db_start_driver_open_database.argtypes = [String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 374
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db__start_procedure_call'):
    db__start_procedure_call = _libs['grass_dbmibase.7.0.5'].db__start_procedure_call
    db__start_procedure_call.restype = c_int
    db__start_procedure_call.argtypes = [c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 375
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_store'):
    db_store = _libs['grass_dbmibase.7.0.5'].db_store
    db_store.restype = ReturnString
    db_store.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 376
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_strip'):
    db_strip = _libs['grass_dbmibase.7.0.5'].db_strip
    db_strip.restype = None
    db_strip.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 377
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_syserror'):
    db_syserror = _libs['grass_dbmibase.7.0.5'].db_syserror
    db_syserror.restype = None
    db_syserror.argtypes = [String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 378
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_table_exists'):
    db_table_exists = _libs['grass_dbmiclient.7.0.5'].db_table_exists
    db_table_exists.restype = c_int
    db_table_exists.argtypes = [String, String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 380
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_column_has_default_value'):
    db_test_column_has_default_value = _libs['grass_dbmibase.7.0.5'].db_test_column_has_default_value
    db_test_column_has_default_value.restype = c_int
    db_test_column_has_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 381
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_column_has_defined_default_value'):
    db_test_column_has_defined_default_value = _libs['grass_dbmibase.7.0.5'].db_test_column_has_defined_default_value
    db_test_column_has_defined_default_value.restype = c_int
    db_test_column_has_defined_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 382
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_column_has_undefined_default_value'):
    db_test_column_has_undefined_default_value = _libs['grass_dbmibase.7.0.5'].db_test_column_has_undefined_default_value
    db_test_column_has_undefined_default_value.restype = c_int
    db_test_column_has_undefined_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 383
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_column_null_allowed'):
    db_test_column_null_allowed = _libs['grass_dbmibase.7.0.5'].db_test_column_null_allowed
    db_test_column_null_allowed.restype = c_int
    db_test_column_null_allowed.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 384
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_column_use_default_value'):
    db_test_column_use_default_value = _libs['grass_dbmibase.7.0.5'].db_test_column_use_default_value
    db_test_column_use_default_value.restype = c_int
    db_test_column_use_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 385
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_any_column_flag'):
    db_test_cursor_any_column_flag = _libs['grass_dbmibase.7.0.5'].db_test_cursor_any_column_flag
    db_test_cursor_any_column_flag.restype = c_int
    db_test_cursor_any_column_flag.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 386
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_any_column_for_update'):
    db_test_cursor_any_column_for_update = _libs['grass_dbmibase.7.0.5'].db_test_cursor_any_column_for_update
    db_test_cursor_any_column_for_update.restype = c_int
    db_test_cursor_any_column_for_update.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 387
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_column_flag'):
    db_test_cursor_column_flag = _libs['grass_dbmibase.7.0.5'].db_test_cursor_column_flag
    db_test_cursor_column_flag.restype = c_int
    db_test_cursor_column_flag.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 388
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_column_for_update'):
    db_test_cursor_column_for_update = _libs['grass_dbmibase.7.0.5'].db_test_cursor_column_for_update
    db_test_cursor_column_for_update.restype = c_int
    db_test_cursor_column_for_update.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 389
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_mode_insensitive'):
    db_test_cursor_mode_insensitive = _libs['grass_dbmibase.7.0.5'].db_test_cursor_mode_insensitive
    db_test_cursor_mode_insensitive.restype = c_int
    db_test_cursor_mode_insensitive.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 390
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_mode_scroll'):
    db_test_cursor_mode_scroll = _libs['grass_dbmibase.7.0.5'].db_test_cursor_mode_scroll
    db_test_cursor_mode_scroll.restype = c_int
    db_test_cursor_mode_scroll.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 391
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_type_fetch'):
    db_test_cursor_type_fetch = _libs['grass_dbmibase.7.0.5'].db_test_cursor_type_fetch
    db_test_cursor_type_fetch.restype = c_int
    db_test_cursor_type_fetch.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 392
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_type_insert'):
    db_test_cursor_type_insert = _libs['grass_dbmibase.7.0.5'].db_test_cursor_type_insert
    db_test_cursor_type_insert.restype = c_int
    db_test_cursor_type_insert.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 393
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_cursor_type_update'):
    db_test_cursor_type_update = _libs['grass_dbmibase.7.0.5'].db_test_cursor_type_update
    db_test_cursor_type_update.restype = c_int
    db_test_cursor_type_update.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 394
for _lib in _libs.values():
    if hasattr(_lib, 'db__test_database_open'):
        db__test_database_open = _lib.db__test_database_open
        db__test_database_open.restype = c_int
        db__test_database_open.argtypes = []
        break

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 395
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_index_type_unique'):
    db_test_index_type_unique = _libs['grass_dbmibase.7.0.5'].db_test_index_type_unique
    db_test_index_type_unique.restype = c_int
    db_test_index_type_unique.argtypes = [POINTER(dbIndex)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 396
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_value_datetime_current'):
    db_test_value_datetime_current = _libs['grass_dbmibase.7.0.5'].db_test_value_datetime_current
    db_test_value_datetime_current.restype = c_int
    db_test_value_datetime_current.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 397
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_test_value_isnull'):
    db_test_value_isnull = _libs['grass_dbmibase.7.0.5'].db_test_value_isnull
    db_test_value_isnull.restype = c_int
    db_test_value_isnull.argtypes = [POINTER(dbValue)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 398
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_column_has_default_value'):
    db_unset_column_has_default_value = _libs['grass_dbmibase.7.0.5'].db_unset_column_has_default_value
    db_unset_column_has_default_value.restype = None
    db_unset_column_has_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 399
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_column_null_allowed'):
    db_unset_column_null_allowed = _libs['grass_dbmibase.7.0.5'].db_unset_column_null_allowed
    db_unset_column_null_allowed.restype = None
    db_unset_column_null_allowed.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 400
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_column_use_default_value'):
    db_unset_column_use_default_value = _libs['grass_dbmibase.7.0.5'].db_unset_column_use_default_value
    db_unset_column_use_default_value.restype = None
    db_unset_column_use_default_value.argtypes = [POINTER(dbColumn)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 401
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_cursor_column_flag'):
    db_unset_cursor_column_flag = _libs['grass_dbmibase.7.0.5'].db_unset_cursor_column_flag
    db_unset_cursor_column_flag.restype = None
    db_unset_cursor_column_flag.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 402
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_cursor_column_for_update'):
    db_unset_cursor_column_for_update = _libs['grass_dbmibase.7.0.5'].db_unset_cursor_column_for_update
    db_unset_cursor_column_for_update.restype = None
    db_unset_cursor_column_for_update.argtypes = [POINTER(dbCursor), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 403
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_cursor_mode'):
    db_unset_cursor_mode = _libs['grass_dbmibase.7.0.5'].db_unset_cursor_mode
    db_unset_cursor_mode.restype = None
    db_unset_cursor_mode.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 404
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_cursor_mode_insensitive'):
    db_unset_cursor_mode_insensitive = _libs['grass_dbmibase.7.0.5'].db_unset_cursor_mode_insensitive
    db_unset_cursor_mode_insensitive.restype = None
    db_unset_cursor_mode_insensitive.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 405
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_unset_cursor_mode_scroll'):
    db_unset_cursor_mode_scroll = _libs['grass_dbmibase.7.0.5'].db_unset_cursor_mode_scroll
    db_unset_cursor_mode_scroll.restype = None
    db_unset_cursor_mode_scroll.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 406
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_update'):
    db_update = _libs['grass_dbmiclient.7.0.5'].db_update
    db_update.restype = c_int
    db_update.argtypes = [POINTER(dbCursor)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 407
if hasattr(_libs['grass_dbmiclient.7.0.5'], 'db_gversion'):
    db_gversion = _libs['grass_dbmiclient.7.0.5'].db_gversion
    db_gversion.restype = c_int
    db_gversion.argtypes = [POINTER(dbDriver), POINTER(dbString), POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 409
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_whoami'):
    db_whoami = _libs['grass_dbmibase.7.0.5'].db_whoami
    db_whoami.restype = ReturnString
    db_whoami.argtypes = []

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 410
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_zero'):
    db_zero = _libs['grass_dbmibase.7.0.5'].db_zero
    db_zero.restype = None
    db_zero.argtypes = [POINTER(None), c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 411
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_zero_string'):
    db_zero_string = _libs['grass_dbmibase.7.0.5'].db_zero_string
    db_zero_string.restype = None
    db_zero_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 412
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_sizeof_string'):
    db_sizeof_string = _libs['grass_dbmibase.7.0.5'].db_sizeof_string
    db_sizeof_string.restype = c_uint
    db_sizeof_string.argtypes = [POINTER(dbString)]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 413
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_login'):
    db_set_login = _libs['grass_dbmibase.7.0.5'].db_set_login
    db_set_login.restype = c_int
    db_set_login.argtypes = [String, String, String, String]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 414
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_set_login2'):
    db_set_login2 = _libs['grass_dbmibase.7.0.5'].db_set_login2
    db_set_login2.restype = c_int
    db_set_login2.argtypes = [String, String, String, String, String, String, c_int]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 416
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_login'):
    db_get_login = _libs['grass_dbmibase.7.0.5'].db_get_login
    db_get_login.restype = c_int
    db_get_login.argtypes = [String, String, POINTER(POINTER(c_char)), POINTER(POINTER(c_char))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 417
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_login2'):
    db_get_login2 = _libs['grass_dbmibase.7.0.5'].db_get_login2
    db_get_login2.restype = c_int
    db_get_login2.argtypes = [String, String, POINTER(POINTER(c_char)), POINTER(POINTER(c_char)), POINTER(POINTER(c_char)), POINTER(POINTER(c_char))]

# C:/msys64/usr/src/grass705/dist.x86_64-w64-mingw32/include/grass/defs/dbmi.h: 419
if hasattr(_libs['grass_dbmibase.7.0.5'], 'db_get_login_dump'):
    db_get_login_dump = _libs['grass_dbmibase.7.0.5'].db_get_login_dump
    db_get_login_dump.restype = c_int
    db_get_login_dump.argtypes = [POINTER(FILE)]

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 18
try:
    DB_VERSION = '0'
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 20
try:
    DB_DEFAULT_DRIVER = 'sqlite'
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 25
try:
    DB_PROC_VERSION = 999
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_CLOSE_DATABASE = 101
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_CREATE_DATABASE = 102
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_DELETE_DATABASE = 103
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_FIND_DATABASE = 104
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_LIST_DATABASES = 105
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_OPEN_DATABASE = 106
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 26
try:
    DB_PROC_SHUTDOWN_DRIVER = 107
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_CLOSE_CURSOR = 201
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_DELETE = 202
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_FETCH = 203
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_INSERT = 204
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_OPEN_INSERT_CURSOR = 205
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_OPEN_SELECT_CURSOR = 206
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_OPEN_UPDATE_CURSOR = 207
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_UPDATE = 208
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_ROWS = 209
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_BIND_UPDATE = 220
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 27
try:
    DB_PROC_BIND_INSERT = 221
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 28
try:
    DB_PROC_EXECUTE_IMMEDIATE = 301
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 28
try:
    DB_PROC_BEGIN_TRANSACTION = 302
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 28
try:
    DB_PROC_COMMIT_TRANSACTION = 303
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_CREATE_TABLE = 401
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_DESCRIBE_TABLE = 402
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_DROP_TABLE = 403
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_LIST_TABLES = 404
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_ADD_COLUMN = 405
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_DROP_COLUMN = 406
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 29
try:
    DB_PROC_GRANT_ON_TABLE = 407
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 30
try:
    DB_PROC_CREATE_INDEX = 701
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 30
try:
    DB_PROC_LIST_INDEXES = 702
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 30
try:
    DB_PROC_DROP_INDEX = 703
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 32
try:
    DB_PERM_R = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 32
try:
    DB_PERM_W = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 32
try:
    DB_PERM_X = 4
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 34
try:
    DB_OK = 0
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 34
try:
    DB_FAILED = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 34
try:
    DB_NOPROC = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 34
try:
    DB_MEMORY_ERR = (-1)
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 34
try:
    DB_PROTOCOL_ERR = (-2)
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 34
try:
    DB_EOF = (-1)
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 36
try:
    DB_SQL_TYPE_UNKNOWN = 0
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_CHARACTER = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_SMALLINT = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_INTEGER = 3
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_REAL = 4
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_DOUBLE_PRECISION = 6
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_DECIMAL = 7
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_NUMERIC = 8
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_DATE = 9
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_TIME = 10
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_TIMESTAMP = 11
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_INTERVAL = 12
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 37
try:
    DB_SQL_TYPE_TEXT = 13
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 38
try:
    DB_SQL_TYPE_SERIAL = 21
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_YEAR = 16384
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_MONTH = 8192
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_DAY = 4096
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_HOUR = 2048
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_MINUTE = 1024
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_SECOND = 512
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_FRACTION = 256
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 40
try:
    DB_DATETIME_MASK = 65280
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 42
try:
    DB_C_TYPE_STRING = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 42
try:
    DB_C_TYPE_INT = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 42
try:
    DB_C_TYPE_DOUBLE = 3
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 42
try:
    DB_C_TYPE_DATETIME = 4
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 44
try:
    DB_CURRENT = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 44
try:
    DB_NEXT = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 44
try:
    DB_PREVIOUS = 3
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 44
try:
    DB_FIRST = 4
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 44
try:
    DB_LAST = 5
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 46
try:
    DB_READONLY = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 46
try:
    DB_INSERT = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 46
try:
    DB_UPDATE = 3
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 46
try:
    DB_SEQUENTIAL = 0
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 46
try:
    DB_SCROLL = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 46
try:
    DB_INSENSITIVE = 4
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 48
try:
    DB_GRANTED = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 48
try:
    DB_NOT_GRANTED = (-1)
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 50
try:
    DB_PRIV_SELECT = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 51
try:
    DB_GROUP = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 51
try:
    DB_PUBLIC = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 53
try:
    DB_DEFINED = 1
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 53
try:
    DB_UNDEFINED = 2
except:
    pass

# C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 55
try:
    DB_SQL_MAX = 4096
except:
    pass

_db_string = struct__db_string # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 151

_dbmscap = struct__dbmscap # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 153

_db_dirent = struct__db_dirent # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 166

_db_driver = struct__db_driver # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 173

_db_handle = struct__db_handle # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 180

_db_date_time = struct__db_date_time # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 191

_db_value = struct__db_value # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 200

_db_column = struct__db_column # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 218

_db_table = struct__db_table # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 228

_db_cursor = struct__db_cursor # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 238

_db_index = struct__db_index # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 247

_db_driver_state = struct__db_driver_state # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 256

_db_connection = struct__db_connection # C:\\msys64\\usr\\src\\grass705\\dist.x86_64-w64-mingw32\\include\\grass\\dbmi.h: 304

# No inserted files

