亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? maxdb.py

?? SQLAlchemy. 經典的Python ORM框架。學習必看。
?? PY
?? 第 1 頁 / 共 3 頁
字號:
# maxdb.py## This module is part of SQLAlchemy and is released under# the MIT License: http://www.opensource.org/licenses/mit-license.php"""Support for the MaxDB database.TODO: More module docs!  MaxDB support is currently experimental.Overview--------The ``maxdb`` dialect is **experimental** and has only been tested on 7.6.03.007and 7.6.00.037.  Of these, **only 7.6.03.007 will work** with SQLAlchemy's ORM.The earlier version has severe ``LEFT JOIN`` limitations and will returnincorrect results from even very simple ORM queries.Only the native Python DB-API is currently supported.  ODBC driver supportis a future enhancement.Connecting----------The username is case-sensitive.  If you usually connect to thedatabase with sqlcli and other tools in lower case, you likely need touse upper case for DB-API.Implementation Notes--------------------Also check the DatabaseNotes page on the wiki for detailed information.With the 7.6.00.37 driver and Python 2.5, it seems that all DB-APIgenerated exceptions are broken and can cause Python to crash.For 'somecol.in_([])' to work, the IN operator's generation must be changedto cast 'NULL' to a numeric, i.e. NUM(NULL).  The DB-API doesn't accept abind parameter there, so that particular generation must inline the NULL value,which depends on [ticket:807].The DB-API is very picky about where bind params may be used in queries.Bind params for some functions (e.g. MOD) need type information supplied.The dialect does not yet do this automatically.Max will occasionally throw up 'bad sql, compile again' exceptions forperfectly valid SQL.  The dialect does not currently handle these, moreresearch is needed.MaxDB 7.5 and Sap DB <= 7.4 reportedly do not support schemas.  A veryslightly different version of this dialect would be required to supportthose versions, and can easily be added if there is demand.  Some otherrequired components such as an Max-aware 'old oracle style' join compiler(thetas with (+) outer indicators) are already done and available forintegration- email the devel list if you're interested in working onthis."""import datetime, itertools, refrom sqlalchemy import exceptions, schema, sql, utilfrom sqlalchemy.sql import operators as sql_operators, expression as sql_exprfrom sqlalchemy.sql import compiler, visitorsfrom sqlalchemy.engine import base as engine_base, defaultfrom sqlalchemy import types as sqltypes__all__ = [    'MaxString', 'MaxUnicode', 'MaxChar', 'MaxText', 'MaxInteger',    'MaxSmallInteger', 'MaxNumeric', 'MaxFloat', 'MaxTimestamp',    'MaxDate', 'MaxTime', 'MaxBoolean', 'MaxBlob',    ]class _StringType(sqltypes.String):    _type = None    def __init__(self, length=None, encoding=None, **kw):        super(_StringType, self).__init__(length=length, **kw)        self.encoding = encoding    def get_col_spec(self):        if self.length is None:            spec = 'LONG'        else:            spec = '%s(%s)' % (self._type, self.length)        if self.encoding is not None:            spec = ' '.join([spec, self.encoding.upper()])        return spec    def bind_processor(self, dialect):        if self.encoding == 'unicode':            return None        else:            def process(value):                if isinstance(value, unicode):                    return value.encode(dialect.encoding)                else:                    return value            return process    def result_processor(self, dialect):        def process(value):            while True:                if value is None:                    return None                elif isinstance(value, unicode):                    return value                elif isinstance(value, str):                    if self.convert_unicode or dialect.convert_unicode:                        return value.decode(dialect.encoding)                    else:                        return value                elif hasattr(value, 'read'):                    # some sort of LONG, snarf and retry                    value = value.read(value.remainingLength())                    continue                else:                    # unexpected type, return as-is                    return value        return processclass MaxString(_StringType):    _type = 'VARCHAR'    def __init__(self, *a, **kw):        super(MaxString, self).__init__(*a, **kw)class MaxUnicode(_StringType):    _type = 'VARCHAR'    def __init__(self, length=None, **kw):        super(MaxUnicode, self).__init__(length=length, encoding='unicode')class MaxChar(_StringType):    _type = 'CHAR'class MaxText(_StringType):    _type = 'LONG'    def __init__(self, *a, **kw):        super(MaxText, self).__init__(*a, **kw)    def get_col_spec(self):        spec = 'LONG'        if self.encoding is not None:            spec = ' '.join((spec, self.encoding))        elif self.convert_unicode:            spec = ' '.join((spec, 'UNICODE'))        return specclass MaxInteger(sqltypes.Integer):    def get_col_spec(self):        return 'INTEGER'class MaxSmallInteger(MaxInteger):    def get_col_spec(self):        return 'SMALLINT'class MaxNumeric(sqltypes.Numeric):    """The FIXED (also NUMERIC, DECIMAL) data type."""    def __init__(self, precision=None, length=None, **kw):        kw.setdefault('asdecimal', True)        super(MaxNumeric, self).__init__(length=length, precision=precision,                                         **kw)    def bind_processor(self, dialect):        return None    def get_col_spec(self):        if self.length and self.precision:            return 'FIXED(%s, %s)' % (self.precision, self.length)        elif self.precision:            return 'FIXED(%s)' % self.precision        else:            return 'INTEGER'class MaxFloat(sqltypes.Float):    """The FLOAT data type."""    def get_col_spec(self):        if self.precision is None:            return 'FLOAT'        else:            return 'FLOAT(%s)' % (self.precision,)class MaxTimestamp(sqltypes.DateTime):    def get_col_spec(self):        return 'TIMESTAMP'    def bind_processor(self, dialect):        def process(value):            if value is None:                return None            elif isinstance(value, basestring):                return value            elif dialect.datetimeformat == 'internal':                ms = getattr(value, 'microsecond', 0)                return value.strftime("%Y%m%d%H%M%S" + ("%06u" % ms))            elif dialect.datetimeformat == 'iso':                ms = getattr(value, 'microsecond', 0)                return value.strftime("%Y-%m-%d %H:%M:%S." + ("%06u" % ms))            else:                raise exceptions.InvalidRequestError(                    "datetimeformat '%s' is not supported." % (                    dialect.datetimeformat,))        return process    def result_processor(self, dialect):        def process(value):            if value is None:                return None            elif dialect.datetimeformat == 'internal':                return datetime.datetime(                    *[int(v)                      for v in (value[0:4], value[4:6], value[6:8],                                value[8:10], value[10:12], value[12:14],                                value[14:])])            elif dialect.datetimeformat == 'iso':                return datetime.datetime(                    *[int(v)                      for v in (value[0:4], value[5:7], value[8:10],                                value[11:13], value[14:16], value[17:19],                                value[20:])])            else:                raise exceptions.InvalidRequestError(                    "datetimeformat '%s' is not supported." % (                    dialect.datetimeformat,))        return processclass MaxDate(sqltypes.Date):    def get_col_spec(self):        return 'DATE'    def bind_processor(self, dialect):        def process(value):            if value is None:                return None            elif isinstance(value, basestring):                return value            elif dialect.datetimeformat == 'internal':                return value.strftime("%Y%m%d")            elif dialect.datetimeformat == 'iso':                return value.strftime("%Y-%m-%d")            else:                raise exceptions.InvalidRequestError(                    "datetimeformat '%s' is not supported." % (                    dialect.datetimeformat,))        return process    def result_processor(self, dialect):        def process(value):            if value is None:                return None            elif dialect.datetimeformat == 'internal':                return datetime.date(                    *[int(v) for v in (value[0:4], value[4:6], value[6:8])])            elif dialect.datetimeformat == 'iso':                return datetime.date(                    *[int(v) for v in (value[0:4], value[5:7], value[8:10])])            else:                raise exceptions.InvalidRequestError(                    "datetimeformat '%s' is not supported." % (                    dialect.datetimeformat,))        return processclass MaxTime(sqltypes.Time):    def get_col_spec(self):        return 'TIME'    def bind_processor(self, dialect):        def process(value):            if value is None:                return None            elif isinstance(value, basestring):                return value            elif dialect.datetimeformat == 'internal':                return value.strftime("%H%M%S")            elif dialect.datetimeformat == 'iso':                return value.strftime("%H-%M-%S")            else:                raise exceptions.InvalidRequestError(                    "datetimeformat '%s' is not supported." % (                    dialect.datetimeformat,))        return process    def result_processor(self, dialect):        def process(value):            if value is None:                return None            elif dialect.datetimeformat == 'internal':                t = datetime.time(                    *[int(v) for v in (value[0:4], value[4:6], value[6:8])])                return t            elif dialect.datetimeformat == 'iso':                return datetime.time(                    *[int(v) for v in (value[0:4], value[5:7], value[8:10])])            else:                raise exceptions.InvalidRequestError(                    "datetimeformat '%s' is not supported." % (                    dialect.datetimeformat,))        return processclass MaxBoolean(sqltypes.Boolean):    def get_col_spec(self):        return 'BOOLEAN'class MaxBlob(sqltypes.Binary):    def get_col_spec(self):        return 'LONG BYTE'    def bind_processor(self, dialect):        def process(value):            if value is None:                return None            else:                return str(value)        return process    def result_processor(self, dialect):        def process(value):            if value is None:                return None            else:                return value.read(value.remainingLength())        return processcolspecs = {    sqltypes.Integer: MaxInteger,    sqltypes.Smallinteger: MaxSmallInteger,    sqltypes.Numeric: MaxNumeric,    sqltypes.Float: MaxFloat,    sqltypes.DateTime: MaxTimestamp,    sqltypes.Date: MaxDate,    sqltypes.Time: MaxTime,    sqltypes.String: MaxString,    sqltypes.Binary: MaxBlob,    sqltypes.Boolean: MaxBoolean,    sqltypes.Text: MaxText,    sqltypes.CHAR: MaxChar,    sqltypes.TIMESTAMP: MaxTimestamp,    sqltypes.BLOB: MaxBlob,    sqltypes.Unicode: MaxUnicode,    }ischema_names = {    'boolean': MaxBoolean,    'char': MaxChar,    'character': MaxChar,    'date': MaxDate,    'fixed': MaxNumeric,    'float': MaxFloat,    'int': MaxInteger,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产·精品毛片| 欧美日韩精品久久久| 在线国产亚洲欧美| 精品不卡在线视频| 亚洲一区二区三区中文字幕 | 国产精品久久久久一区| 一区二区三区波多野结衣在线观看| 日韩精品亚洲一区| 91香蕉视频在线| 欧美精品一区二区久久久| 亚洲一区在线视频观看| 成人av资源在线| 精品播放一区二区| 麻豆国产精品官网| 欧美性色黄大片| 亚洲免费资源在线播放| 国产精品一二三| 日韩精品一区二区三区蜜臀| 亚洲福中文字幕伊人影院| 色综合久久久久久久| 国产精品污网站| 国产精品中文字幕一区二区三区| 欧美日韩国产高清一区二区三区| 亚洲色图20p| 成人av资源网站| 国产精品久久久一本精品| 国产高清不卡一区| 久久女同精品一区二区| 老司机免费视频一区二区三区| 欧美区视频在线观看| 亚洲永久免费视频| 色婷婷精品久久二区二区蜜臂av| 中文字幕亚洲欧美在线不卡| 大白屁股一区二区视频| 国产婷婷色一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区| 欧美手机在线视频| 亚洲成av人片一区二区三区| 欧美中文字幕不卡| 亚洲影院理伦片| 91精品麻豆日日躁夜夜躁| 日韩不卡一区二区| 日韩精品中午字幕| 久草中文综合在线| 久久久精品人体av艺术| 国产福利一区在线| 亚洲毛片av在线| 欧美日韩一卡二卡三卡 | 欧美妇女性影城| 丝袜国产日韩另类美女| 欧美一区二区三区在线观看| 日本欧美一区二区三区| 精品国产一区二区在线观看| 韩国欧美国产1区| 国产精品剧情在线亚洲| 一本一道久久a久久精品综合蜜臀| 一区二区欧美精品| 3751色影院一区二区三区| 精品影视av免费| 国产精品人成在线观看免费 | 国内精品伊人久久久久av一坑| 久久蜜桃香蕉精品一区二区三区| 国产凹凸在线观看一区二区| 亚洲免费观看高清完整版在线观看熊| 色综合视频一区二区三区高清| 午夜影院久久久| 国产午夜精品一区二区三区嫩草| 91一区二区在线观看| 日本不卡一区二区三区| 亚洲国产精华液网站w| 欧美色老头old∨ideo| 久久99精品久久久久久动态图| 国产精品美女久久久久久| 欧美无砖砖区免费| 国产剧情一区在线| 亚洲午夜一二三区视频| 精品国产乱码久久久久久影片| 成人av手机在线观看| 亚洲成av人片观看| 国产精品福利电影一区二区三区四区| 欧美日韩国产乱码电影| fc2成人免费人成在线观看播放| 午夜伦欧美伦电影理论片| 国产色综合久久| 欧美肥妇bbw| 99精品在线免费| 国产精品一区在线观看你懂的| 亚洲在线视频一区| 国产精品入口麻豆九色| 欧美大胆人体bbbb| 精品1区2区3区| a级精品国产片在线观看| 久久国产欧美日韩精品| 香蕉影视欧美成人| 亚洲免费观看高清完整版在线观看熊| 久久这里只有精品6| 欧美日韩一区二区三区在线| 99久久免费精品高清特色大片| 久久精品国产久精国产| 午夜精品国产更新| 亚洲欧美日韩在线不卡| 国产日韩欧美制服另类| 奇米色一区二区三区四区| 91精品国产色综合久久不卡电影 | 亚洲欧洲精品天堂一级| 欧美日本韩国一区二区三区视频| 丁香六月综合激情| 国模一区二区三区白浆| 日韩国产欧美在线观看| 亚洲综合图片区| 一区二区三区中文字幕电影| 国产女同互慰高潮91漫画| 精品国产不卡一区二区三区| 日韩一区二区三免费高清| 91麻豆精品国产91久久久久久久久 | 成人av综合一区| 国产精品一区二区免费不卡 | 国产欧美日韩另类一区| 国产乱人伦偷精品视频不卡| 久久久久国产免费免费| 国产精品一区二区在线播放 | 国产精品国产自产拍高清av| 337p日本欧洲亚洲大胆精品| 精品国产一区二区亚洲人成毛片| 日韩欧美成人激情| 欧美成人国产一区二区| 欧美久久久一区| 6080yy午夜一二三区久久| 欧美日韩激情在线| 日韩一级高清毛片| 久久综合999| 中文字幕av不卡| 亚洲精品国久久99热| 亚洲高清免费观看 | 成人污视频在线观看| 成人欧美一区二区三区白人| 91精品国产综合久久精品app | 国产欧美精品一区aⅴ影院| 久久久久高清精品| 国产精品福利影院| 亚洲图片一区二区| 老色鬼精品视频在线观看播放| 国产在线视频精品一区| 成人福利视频在线| 色综合久久综合中文综合网| 欧美性videosxxxxx| 精品美女一区二区三区| 欧美国产日韩精品免费观看| 亚洲精品高清在线| 免费观看一级特黄欧美大片| 国内精品久久久久影院色 | 亚洲色大成网站www久久九九| 一二三区精品视频| 久久er99热精品一区二区| 中文字幕欧美一区| 秋霞电影一区二区| 一区二区不卡在线播放| 久久久午夜精品理论片中文字幕| 91一区一区三区| 欧美一区二区精品在线| 久久综合九色欧美综合狠狠| 亚洲天堂中文字幕| 麻豆视频一区二区| 不卡一二三区首页| 91精品国产综合久久久久久久久久 | aaa国产一区| 91精品国产一区二区三区蜜臀| 欧美激情在线看| 日日摸夜夜添夜夜添国产精品| 国产a级毛片一区| 欧美日韩国产综合视频在线观看| 精品国产一区二区三区不卡 | 日韩欧美中文字幕精品| 99久久精品免费精品国产| 在线视频亚洲一区| 国产视频亚洲色图| 青青草原综合久久大伊人精品 | 一区二区三区高清在线| 国产一区二区三区免费播放 | 在线视频观看一区| 国产精品你懂的在线欣赏| 麻豆成人91精品二区三区| 在线视频一区二区三区| 1024成人网| 成人午夜短视频| 精品国产sm最大网站免费看| 婷婷丁香久久五月婷婷| 91美女片黄在线观看| 日本一二三不卡| 国产在线精品一区二区三区不卡| 欧美日韩一区二区在线观看| 一区二区三区免费网站| 91在线播放网址| 国产精品国产三级国产aⅴ入口| 久久精品噜噜噜成人88aⅴ| 欧美日本在线播放| 婷婷中文字幕一区三区| 欧美体内she精高潮| 亚洲高清免费一级二级三级| 欧美亚洲尤物久久|