⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 odbc.py

📁 这个是内存数据库的客户端
💻 PY
📖 第 1 页 / 共 5 页
字号:
# This file was created automatically by SWIG.# Don't modify this file, modify the SWIG interface instead.# This file is compatible with both classic and new-style classes.import _odbcdef _swig_setattr_nondynamic(self,class_type,name,value,static=1):    if (name == "this"):        if isinstance(value, class_type):            self.__dict__[name] = value.this            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown            del value.thisown            return    method = class_type.__swig_setmethods__.get(name,None)    if method: return method(self,value)    if (not static) or hasattr(self,name) or (name == "thisown"):        self.__dict__[name] = value    else:        raise AttributeError("You cannot add attributes to %s" % self)def _swig_setattr(self,class_type,name,value):    return _swig_setattr_nondynamic(self,class_type,name,value,0)def _swig_getattr(self,class_type,name):    method = class_type.__swig_getmethods__.get(name,None)    if method: return method(self)    raise AttributeError,nameimport typestry:    _object = types.ObjectType    _newclass = 1except AttributeError:    class _object : pass    _newclass = 0del typesODBCVER = _odbc.ODBCVERSIZEOF_LONG = _odbc.SIZEOF_LONGclass DATE_STRUCT(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, DATE_STRUCT, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, DATE_STRUCT, name)    def __repr__(self):        return "<%s.%s; proxy of C DATE_STRUCT instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["year"] = _odbc.DATE_STRUCT_year_set    __swig_getmethods__["year"] = _odbc.DATE_STRUCT_year_get    if _newclass:year = property(_odbc.DATE_STRUCT_year_get, _odbc.DATE_STRUCT_year_set)    __swig_setmethods__["month"] = _odbc.DATE_STRUCT_month_set    __swig_getmethods__["month"] = _odbc.DATE_STRUCT_month_get    if _newclass:month = property(_odbc.DATE_STRUCT_month_get, _odbc.DATE_STRUCT_month_set)    __swig_setmethods__["day"] = _odbc.DATE_STRUCT_day_set    __swig_getmethods__["day"] = _odbc.DATE_STRUCT_day_get    if _newclass:day = property(_odbc.DATE_STRUCT_day_get, _odbc.DATE_STRUCT_day_set)    def __init__(self, *args):        _swig_setattr(self, DATE_STRUCT, 'this', _odbc.new_DATE_STRUCT(*args))        _swig_setattr(self, DATE_STRUCT, 'thisown', 1)    def __del__(self, destroy=_odbc.delete_DATE_STRUCT):        try:            if self.thisown: destroy(self)        except: passclass DATE_STRUCTPtr(DATE_STRUCT):    def __init__(self, this):        _swig_setattr(self, DATE_STRUCT, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, DATE_STRUCT, 'thisown', 0)        _swig_setattr(self, DATE_STRUCT,self.__class__,DATE_STRUCT)_odbc.DATE_STRUCT_swigregister(DATE_STRUCTPtr)class TIME_STRUCT(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, TIME_STRUCT, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, TIME_STRUCT, name)    def __repr__(self):        return "<%s.%s; proxy of C TIME_STRUCT instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["hour"] = _odbc.TIME_STRUCT_hour_set    __swig_getmethods__["hour"] = _odbc.TIME_STRUCT_hour_get    if _newclass:hour = property(_odbc.TIME_STRUCT_hour_get, _odbc.TIME_STRUCT_hour_set)    __swig_setmethods__["minute"] = _odbc.TIME_STRUCT_minute_set    __swig_getmethods__["minute"] = _odbc.TIME_STRUCT_minute_get    if _newclass:minute = property(_odbc.TIME_STRUCT_minute_get, _odbc.TIME_STRUCT_minute_set)    __swig_setmethods__["second"] = _odbc.TIME_STRUCT_second_set    __swig_getmethods__["second"] = _odbc.TIME_STRUCT_second_get    if _newclass:second = property(_odbc.TIME_STRUCT_second_get, _odbc.TIME_STRUCT_second_set)    def __init__(self, *args):        _swig_setattr(self, TIME_STRUCT, 'this', _odbc.new_TIME_STRUCT(*args))        _swig_setattr(self, TIME_STRUCT, 'thisown', 1)    def __del__(self, destroy=_odbc.delete_TIME_STRUCT):        try:            if self.thisown: destroy(self)        except: passclass TIME_STRUCTPtr(TIME_STRUCT):    def __init__(self, this):        _swig_setattr(self, TIME_STRUCT, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, TIME_STRUCT, 'thisown', 0)        _swig_setattr(self, TIME_STRUCT,self.__class__,TIME_STRUCT)_odbc.TIME_STRUCT_swigregister(TIME_STRUCTPtr)class TIMESTAMP_STRUCT(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, TIMESTAMP_STRUCT, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, TIMESTAMP_STRUCT, name)    def __repr__(self):        return "<%s.%s; proxy of C TIMESTAMP_STRUCT instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["year"] = _odbc.TIMESTAMP_STRUCT_year_set    __swig_getmethods__["year"] = _odbc.TIMESTAMP_STRUCT_year_get    if _newclass:year = property(_odbc.TIMESTAMP_STRUCT_year_get, _odbc.TIMESTAMP_STRUCT_year_set)    __swig_setmethods__["month"] = _odbc.TIMESTAMP_STRUCT_month_set    __swig_getmethods__["month"] = _odbc.TIMESTAMP_STRUCT_month_get    if _newclass:month = property(_odbc.TIMESTAMP_STRUCT_month_get, _odbc.TIMESTAMP_STRUCT_month_set)    __swig_setmethods__["day"] = _odbc.TIMESTAMP_STRUCT_day_set    __swig_getmethods__["day"] = _odbc.TIMESTAMP_STRUCT_day_get    if _newclass:day = property(_odbc.TIMESTAMP_STRUCT_day_get, _odbc.TIMESTAMP_STRUCT_day_set)    __swig_setmethods__["hour"] = _odbc.TIMESTAMP_STRUCT_hour_set    __swig_getmethods__["hour"] = _odbc.TIMESTAMP_STRUCT_hour_get    if _newclass:hour = property(_odbc.TIMESTAMP_STRUCT_hour_get, _odbc.TIMESTAMP_STRUCT_hour_set)    __swig_setmethods__["minute"] = _odbc.TIMESTAMP_STRUCT_minute_set    __swig_getmethods__["minute"] = _odbc.TIMESTAMP_STRUCT_minute_get    if _newclass:minute = property(_odbc.TIMESTAMP_STRUCT_minute_get, _odbc.TIMESTAMP_STRUCT_minute_set)    __swig_setmethods__["second"] = _odbc.TIMESTAMP_STRUCT_second_set    __swig_getmethods__["second"] = _odbc.TIMESTAMP_STRUCT_second_get    if _newclass:second = property(_odbc.TIMESTAMP_STRUCT_second_get, _odbc.TIMESTAMP_STRUCT_second_set)    __swig_setmethods__["fraction"] = _odbc.TIMESTAMP_STRUCT_fraction_set    __swig_getmethods__["fraction"] = _odbc.TIMESTAMP_STRUCT_fraction_get    if _newclass:fraction = property(_odbc.TIMESTAMP_STRUCT_fraction_get, _odbc.TIMESTAMP_STRUCT_fraction_set)    def __init__(self, *args):        _swig_setattr(self, TIMESTAMP_STRUCT, 'this', _odbc.new_TIMESTAMP_STRUCT(*args))        _swig_setattr(self, TIMESTAMP_STRUCT, 'thisown', 1)    def __del__(self, destroy=_odbc.delete_TIMESTAMP_STRUCT):        try:            if self.thisown: destroy(self)        except: passclass TIMESTAMP_STRUCTPtr(TIMESTAMP_STRUCT):    def __init__(self, this):        _swig_setattr(self, TIMESTAMP_STRUCT, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, TIMESTAMP_STRUCT, 'thisown', 0)        _swig_setattr(self, TIMESTAMP_STRUCT,self.__class__,TIMESTAMP_STRUCT)_odbc.TIMESTAMP_STRUCT_swigregister(TIMESTAMP_STRUCTPtr)SQL_IS_YEAR = _odbc.SQL_IS_YEARSQL_IS_MONTH = _odbc.SQL_IS_MONTHSQL_IS_DAY = _odbc.SQL_IS_DAYSQL_IS_HOUR = _odbc.SQL_IS_HOURSQL_IS_MINUTE = _odbc.SQL_IS_MINUTESQL_IS_SECOND = _odbc.SQL_IS_SECONDSQL_IS_YEAR_TO_MONTH = _odbc.SQL_IS_YEAR_TO_MONTHSQL_IS_DAY_TO_HOUR = _odbc.SQL_IS_DAY_TO_HOURSQL_IS_DAY_TO_MINUTE = _odbc.SQL_IS_DAY_TO_MINUTESQL_IS_DAY_TO_SECOND = _odbc.SQL_IS_DAY_TO_SECONDSQL_IS_HOUR_TO_MINUTE = _odbc.SQL_IS_HOUR_TO_MINUTESQL_IS_HOUR_TO_SECOND = _odbc.SQL_IS_HOUR_TO_SECONDSQL_IS_MINUTE_TO_SECOND = _odbc.SQL_IS_MINUTE_TO_SECONDclass SQL_YEAR_MONTH_STRUCT(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, SQL_YEAR_MONTH_STRUCT, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, SQL_YEAR_MONTH_STRUCT, name)    def __repr__(self):        return "<%s.%s; proxy of C SQL_YEAR_MONTH_STRUCT instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["year"] = _odbc.SQL_YEAR_MONTH_STRUCT_year_set    __swig_getmethods__["year"] = _odbc.SQL_YEAR_MONTH_STRUCT_year_get    if _newclass:year = property(_odbc.SQL_YEAR_MONTH_STRUCT_year_get, _odbc.SQL_YEAR_MONTH_STRUCT_year_set)    __swig_setmethods__["month"] = _odbc.SQL_YEAR_MONTH_STRUCT_month_set    __swig_getmethods__["month"] = _odbc.SQL_YEAR_MONTH_STRUCT_month_get    if _newclass:month = property(_odbc.SQL_YEAR_MONTH_STRUCT_month_get, _odbc.SQL_YEAR_MONTH_STRUCT_month_set)    def __init__(self, *args):        _swig_setattr(self, SQL_YEAR_MONTH_STRUCT, 'this', _odbc.new_SQL_YEAR_MONTH_STRUCT(*args))        _swig_setattr(self, SQL_YEAR_MONTH_STRUCT, 'thisown', 1)    def __del__(self, destroy=_odbc.delete_SQL_YEAR_MONTH_STRUCT):        try:            if self.thisown: destroy(self)        except: passclass SQL_YEAR_MONTH_STRUCTPtr(SQL_YEAR_MONTH_STRUCT):    def __init__(self, this):        _swig_setattr(self, SQL_YEAR_MONTH_STRUCT, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, SQL_YEAR_MONTH_STRUCT, 'thisown', 0)        _swig_setattr(self, SQL_YEAR_MONTH_STRUCT,self.__class__,SQL_YEAR_MONTH_STRUCT)_odbc.SQL_YEAR_MONTH_STRUCT_swigregister(SQL_YEAR_MONTH_STRUCTPtr)class SQL_DAY_SECOND_STRUCT(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, SQL_DAY_SECOND_STRUCT, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, SQL_DAY_SECOND_STRUCT, name)    def __repr__(self):        return "<%s.%s; proxy of C SQL_DAY_SECOND_STRUCT instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["day"] = _odbc.SQL_DAY_SECOND_STRUCT_day_set    __swig_getmethods__["day"] = _odbc.SQL_DAY_SECOND_STRUCT_day_get    if _newclass:day = property(_odbc.SQL_DAY_SECOND_STRUCT_day_get, _odbc.SQL_DAY_SECOND_STRUCT_day_set)    __swig_setmethods__["hour"] = _odbc.SQL_DAY_SECOND_STRUCT_hour_set    __swig_getmethods__["hour"] = _odbc.SQL_DAY_SECOND_STRUCT_hour_get    if _newclass:hour = property(_odbc.SQL_DAY_SECOND_STRUCT_hour_get, _odbc.SQL_DAY_SECOND_STRUCT_hour_set)    __swig_setmethods__["minute"] = _odbc.SQL_DAY_SECOND_STRUCT_minute_set    __swig_getmethods__["minute"] = _odbc.SQL_DAY_SECOND_STRUCT_minute_get    if _newclass:minute = property(_odbc.SQL_DAY_SECOND_STRUCT_minute_get, _odbc.SQL_DAY_SECOND_STRUCT_minute_set)    __swig_setmethods__["second"] = _odbc.SQL_DAY_SECOND_STRUCT_second_set    __swig_getmethods__["second"] = _odbc.SQL_DAY_SECOND_STRUCT_second_get    if _newclass:second = property(_odbc.SQL_DAY_SECOND_STRUCT_second_get, _odbc.SQL_DAY_SECOND_STRUCT_second_set)    __swig_setmethods__["fraction"] = _odbc.SQL_DAY_SECOND_STRUCT_fraction_set    __swig_getmethods__["fraction"] = _odbc.SQL_DAY_SECOND_STRUCT_fraction_get    if _newclass:fraction = property(_odbc.SQL_DAY_SECOND_STRUCT_fraction_get, _odbc.SQL_DAY_SECOND_STRUCT_fraction_set)    def __init__(self, *args):        _swig_setattr(self, SQL_DAY_SECOND_STRUCT, 'this', _odbc.new_SQL_DAY_SECOND_STRUCT(*args))        _swig_setattr(self, SQL_DAY_SECOND_STRUCT, 'thisown', 1)    def __del__(self, destroy=_odbc.delete_SQL_DAY_SECOND_STRUCT):        try:            if self.thisown: destroy(self)        except: passclass SQL_DAY_SECOND_STRUCTPtr(SQL_DAY_SECOND_STRUCT):    def __init__(self, this):        _swig_setattr(self, SQL_DAY_SECOND_STRUCT, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, SQL_DAY_SECOND_STRUCT, 'thisown', 0)        _swig_setattr(self, SQL_DAY_SECOND_STRUCT,self.__class__,SQL_DAY_SECOND_STRUCT)_odbc.SQL_DAY_SECOND_STRUCT_swigregister(SQL_DAY_SECOND_STRUCTPtr)class SQL_INTERVAL_STRUCT(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, SQL_INTERVAL_STRUCT, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, SQL_INTERVAL_STRUCT, name)    def __repr__(self):        return "<%s.%s; proxy of C SQL_INTERVAL_STRUCT instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["interval_type"] = _odbc.SQL_INTERVAL_STRUCT_interval_type_set    __swig_getmethods__["interval_type"] = _odbc.SQL_INTERVAL_STRUCT_interval_type_get    if _newclass:interval_type = property(_odbc.SQL_INTERVAL_STRUCT_interval_type_get, _odbc.SQL_INTERVAL_STRUCT_interval_type_set)    __swig_setmethods__["interval_sign"] = _odbc.SQL_INTERVAL_STRUCT_interval_sign_set    __swig_getmethods__["interval_sign"] = _odbc.SQL_INTERVAL_STRUCT_interval_sign_get    if _newclass:interval_sign = property(_odbc.SQL_INTERVAL_STRUCT_interval_sign_get, _odbc.SQL_INTERVAL_STRUCT_interval_sign_set)    __swig_getmethods__["intval"] = _odbc.SQL_INTERVAL_STRUCT_intval_get    if _newclass:intval = property(_odbc.SQL_INTERVAL_STRUCT_intval_get)    def __init__(self, *args):        _swig_setattr(self, SQL_INTERVAL_STRUCT, 'this', _odbc.new_SQL_INTERVAL_STRUCT(*args))        _swig_setattr(self, SQL_INTERVAL_STRUCT, 'thisown', 1)    def __del__(self, destroy=_odbc.delete_SQL_INTERVAL_STRUCT):        try:            if self.thisown: destroy(self)        except: passclass SQL_INTERVAL_STRUCTPtr(SQL_INTERVAL_STRUCT):    def __init__(self, this):        _swig_setattr(self, SQL_INTERVAL_STRUCT, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, SQL_INTERVAL_STRUCT, 'thisown', 0)        _swig_setattr(self, SQL_INTERVAL_STRUCT,self.__class__,SQL_INTERVAL_STRUCT)_odbc.SQL_INTERVAL_STRUCT_swigregister(SQL_INTERVAL_STRUCTPtr)class SQL_INTERVAL_STRUCT_intval(_object):    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, SQL_INTERVAL_STRUCT_intval, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, SQL_INTERVAL_STRUCT_intval, name)    def __repr__(self):        return "<%s.%s; proxy of C SQL_INTERVAL_STRUCT_intval instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["year_month"] = _odbc.SQL_INTERVAL_STRUCT_intval_year_month_set    __swig_getmethods__["year_month"] = _odbc.SQL_INTERVAL_STRUCT_intval_year_month_get    if _newclass:year_month = property(_odbc.SQL_INTERVAL_STRUCT_intval_year_month_get, _odbc.SQL_INTERVAL_STRUCT_intval_year_month_set)    __swig_setmethods__["day_second"] = _odbc.SQL_INTERVAL_STRUCT_intval_day_second_set    __swig_getmethods__["day_second"] = _odbc.SQL_INTERVAL_STRUCT_intval_day_second_get    if _newclass:day_second = property(_odbc.SQL_INTERVAL_STRUCT_intval_day_second_get, _odbc.SQL_INTERVAL_STRUCT_intval_day_second_set)    def __init__(self, *args):

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -