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

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

?? mysql.py

?? SQLAlchemy. 經典的Python ORM框架。學習必看。
?? PY
?? 第 1 頁 / 共 5 頁
字號:
          value.  Takes precendence to 'ascii' or 'unicode' short-hand.        collation          Optional, a column-level collation for this string value.          Takes precedence to 'binary' short-hand.        ascii          Defaults to False: short-hand for the ``latin1`` character set,          generates ASCII in schema.        unicode          Defaults to False: short-hand for the ``ucs2`` character set,          generates UNICODE in schema.        binary          Defaults to False: short-hand, pick the binary collation type          that matches the column's character set.  Generates BINARY in          schema.  This does not affect the type of data stored, only the          collation of character data.        """        self.__ddl_values = enums        strip_enums = []        for a in enums:            if a[0:1] == '"' or a[0:1] == "'":                # strip enclosing quotes and unquote interior                a = a[1:-1].replace(a[0] * 2, a[0])            strip_enums.append(a)        self.enums = strip_enums        self.strict = kw.pop('strict', False)        length = max([len(v) for v in strip_enums] + [0])        super(MSEnum, self).__init__(length, **kw)    def bind_processor(self, dialect):        super_convert = super(MSEnum, self).bind_processor(dialect)        def process(value):            if self.strict and value is not None and value not in self.enums:                raise exceptions.InvalidRequestError('"%s" not a valid value for '                                                     'this enum' % value)            if super_convert:                return super_convert(value)            else:                return value        return process    def get_col_spec(self):        return self._extend("ENUM(%s)" % ",".join(self.__ddl_values))class MSSet(MSString):    """MySQL SET type."""    def __init__(self, *values, **kw):        """Construct a SET.        Example::          Column('myset', MSSet("'foo'", "'bar'", "'baz'"))        Arguments are:        values          The range of valid values for this SET.  Values will be used          exactly as they appear when generating schemas.  Strings must          be quoted, as in the example above.  Single-quotes are suggested          for ANSI compatability and are required for portability to servers          with ANSI_QUOTES enabled.        charset          Optional, a column-level character set for this string          value.  Takes precendence to 'ascii' or 'unicode' short-hand.        collation          Optional, a column-level collation for this string value.          Takes precedence to 'binary' short-hand.        ascii          Defaults to False: short-hand for the ``latin1`` character set,          generates ASCII in schema.        unicode          Defaults to False: short-hand for the ``ucs2`` character set,          generates UNICODE in schema.        binary          Defaults to False: short-hand, pick the binary collation type          that matches the column's character set.  Generates BINARY in          schema.  This does not affect the type of data stored, only the          collation of character data.        """        self.__ddl_values = values        strip_values = []        for a in values:            if a[0:1] == '"' or a[0:1] == "'":                # strip enclosing quotes and unquote interior                a = a[1:-1].replace(a[0] * 2, a[0])            strip_values.append(a)        self.values = strip_values        length = max([len(v) for v in strip_values] + [0])        super(MSSet, self).__init__(length, **kw)    def result_processor(self, dialect):        def process(value):            # The good news:            #   No ',' quoting issues- commas aren't allowed in SET values            # The bad news:            #   Plenty of driver inconsistencies here.            if isinstance(value, util.set_types):                # ..some versions convert '' to an empty set                if not value:                    value.add('')                # ..some return sets.Set, even for pythons that have __builtin__.set                if not isinstance(value, util.Set):                    value = util.Set(value)                return value            # ...and some versions return strings            if value is not None:                return util.Set(value.split(','))            else:                return value        return process    def bind_processor(self, dialect):        super_convert = super(MSSet, self).bind_processor(dialect)        def process(value):            if value is None or isinstance(value, (int, long, basestring)):                pass            else:                if None in value:                    value = util.Set(value)                    value.remove(None)                    value.add('')                value = ','.join(value)            if super_convert:                return super_convert(value)            else:                return value        return process    def get_col_spec(self):        return self._extend("SET(%s)" % ",".join(self.__ddl_values))class MSBoolean(sqltypes.Boolean):    """MySQL BOOLEAN type."""    def get_col_spec(self):        return "BOOL"    def result_processor(self, dialect):        def process(value):            if value is None:                return None            return value and True or False        return process    def bind_processor(self, dialect):        def process(value):            if value is True:                return 1            elif value is False:                return 0            elif value is None:                return None            else:                return value and True or False        return processcolspecs = {    sqltypes.Integer: MSInteger,    sqltypes.Smallinteger: MSSmallInteger,    sqltypes.Numeric: MSNumeric,    sqltypes.Float: MSFloat,    sqltypes.DateTime: MSDateTime,    sqltypes.Date: MSDate,    sqltypes.Time: MSTime,    sqltypes.String: MSString,    sqltypes.Binary: MSBlob,    sqltypes.Boolean: MSBoolean,    sqltypes.Text: MSText,    sqltypes.CHAR: MSChar,    sqltypes.NCHAR: MSNChar,    sqltypes.TIMESTAMP: MSTimeStamp,    sqltypes.BLOB: MSBlob,    MSDouble: MSDouble,    MSReal: MSReal,    _BinaryType: _BinaryType,}# Everything 3.23 through 5.1 excepting OpenGIS types.ischema_names = {    'bigint': MSBigInteger,    'binary': MSBinary,    'bit': MSBit,    'blob': MSBlob,    'boolean':MSBoolean,    'char': MSChar,    'date': MSDate,    'datetime': MSDateTime,    'decimal': MSDecimal,    'double': MSDouble,    'enum': MSEnum,    'fixed': MSDecimal,    'float': MSFloat,    'int': MSInteger,    'integer': MSInteger,    'longblob': MSLongBlob,    'longtext': MSLongText,    'mediumblob': MSMediumBlob,    'mediumint': MSInteger,    'mediumtext': MSMediumText,    'nchar': MSNChar,    'nvarchar': MSNVarChar,    'numeric': MSNumeric,    'set': MSSet,    'smallint': MSSmallInteger,    'text': MSText,    'time': MSTime,    'timestamp': MSTimeStamp,    'tinyblob': MSTinyBlob,    'tinyint': MSTinyInteger,    'tinytext': MSTinyText,    'varbinary': MSVarBinary,    'varchar': MSString,    'year': MSYear,}def descriptor():    return {'name':'mysql',    'description':'MySQL',    'arguments':[        ('username',"Database Username",None),        ('password',"Database Password",None),        ('database',"Database Name",None),        ('host',"Hostname", None),    ]}class MySQLExecutionContext(default.DefaultExecutionContext):    def post_exec(self):        if self.compiled.isinsert and not self.executemany:            if (not len(self._last_inserted_ids) or                self._last_inserted_ids[0] is None):                self._last_inserted_ids = ([self.cursor.lastrowid] +                                           self._last_inserted_ids[1:])    def returns_rows_text(self, statement):        return SELECT_RE.match(statement)    def should_autocommit_text(self, statement):        return AUTOCOMMIT_RE.match(statement)class MySQLDialect(default.DefaultDialect):    """Details of the MySQL dialect.  Not used directly in application code."""    supports_alter = True    supports_unicode_statements = False    # identifiers are 64, however aliases can be 255...    max_identifier_length = 255    supports_sane_rowcount = True    def __init__(self, use_ansiquotes=None, **kwargs):        self.use_ansiquotes = use_ansiquotes        kwargs.setdefault('default_paramstyle', 'format')        default.DefaultDialect.__init__(self, **kwargs)    def dbapi(cls):        import MySQLdb as mysql        return mysql    dbapi = classmethod(dbapi)    def create_connect_args(self, url):        opts = url.translate_connect_args(database='db', username='user',                                          password='passwd')        opts.update(url.query)        util.coerce_kw_type(opts, 'compress', bool)        util.coerce_kw_type(opts, 'connect_timeout', int)        util.coerce_kw_type(opts, 'client_flag', int)        util.coerce_kw_type(opts, 'local_infile', int)        # Note: using either of the below will cause all strings to be returned        # as Unicode, both in raw SQL operations and with column types like        # String and MSString.        util.coerce_kw_type(opts, 'use_unicode', bool)        util.coerce_kw_type(opts, 'charset', str)        # Rich values 'cursorclass' and 'conv' are not supported via        # query string.        ssl = {}        for key in ['ssl_ca', 'ssl_key', 'ssl_cert', 'ssl_capath', 'ssl_cipher']:            if key in opts:                ssl[key[4:]] = opts[key]                util.coerce_kw_type(ssl, key[4:], str)                del opts[key]        if ssl:            opts['ssl'] = ssl        # FOUND_ROWS must be set in CLIENT_FLAGS to enable        # supports_sane_rowcount.        client_flag = opts.get('client_flag', 0)        if self.dbapi is not None:            try:                import MySQLdb.constants.CLIENT as CLIENT_FLAGS                client_flag |= CLIENT_FLAGS.FOUND_ROWS            except:                pass            opts['client_flag'] = client_flag        return [[], opts]    def create_execution_context(self, connection, **kwargs):        return MySQLExecutionContext(self, connection, **kwargs)    def type_descriptor(self, typeobj):        return sqltypes.adapt_type(typeobj, colspecs)    def do_executemany(self, cursor, statement, parameters, context=None):        rowcount = cursor.executemany(statement, parameters)        if context is not None:            context._rowcount = rowcount    def supports_unicode_statements(self):        return True    def do_execute(self, cursor, statement, parameters, context=None):        cursor.execute(statement, parameters)    def do_commit(self, connection):        """Execute a COMMIT."""        # COMMIT/ROLLBACK were introduced in 3.23.15.        # Yes, we have at least one user who has to talk to these old versions!        #        # Ignore commit/rollback if support isn't present, otherwise even basic        # operations via autocommit fail.        try:            connection.commit()        except:            if self._server_version_info(connection) < (3, 23, 15):                args = sys.exc_info()[1].args                if args and args[0] == 1064:                    return            raise    def do_rollback(self, connection):        """Execute a ROLLBACK."""        try:            connection.rollback()        except:            if self._server_version_info(connection) < (3, 23, 15):                args = sys.exc_info()[1].args                if args and args[0] == 1064:                    return            raise    def do_begin_twophase(self, connection, xid):        connection.execute("XA BEGIN %s", xid)    def do_prepare_twophase(self, connection, xid):        connection.execute("XA END %s", xid)        connection.execute("XA PREPARE %s", xid)    def do_rollback_twophase(self, connection, xid, is_prepared=True,                             recover=False):        if not is_prepared:            connection.execute("XA END %s", xid)        connection.execute("XA ROLLBACK %s", xid)    def do_commit_twophase(self, connection, xid, is_prepared=True,                           recover=False):        if not is_prepared:            self.do_prepare_twophase(connection, xid)        connection.execute("XA COMMIT %s", xid)    def do_recover_twophase(self, connection):

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91美女片黄在线| 国产99精品视频| 国产亚洲欧美中文| 在线免费视频一区二区| 久久99精品国产麻豆婷婷| 国产精品私人影院| 3d动漫精品啪啪1区2区免费| 国产精品一区二区免费不卡| 亚洲一区二区在线免费观看视频| 日韩一区二区视频在线观看| 9i看片成人免费高清| 美女mm1313爽爽久久久蜜臀| 亚洲精品视频在线| 国产亚洲精品精华液| 69av一区二区三区| 色综合色综合色综合色综合色综合| 精品一区二区三区在线播放| 日韩成人一级片| 亚洲国产精品一区二区久久| 亚洲欧洲在线观看av| 久久久久久亚洲综合影院红桃| 91精品一区二区三区久久久久久| 一本久久精品一区二区| 国产99久久久精品| 韩国av一区二区| 日产国产高清一区二区三区| 亚洲午夜羞羞片| 亚洲摸摸操操av| 国产日韩成人精品| 日韩视频一区二区| 欧美日韩亚洲综合一区| 日本精品一区二区三区四区的功能| 国产揄拍国内精品对白| 丝袜美腿成人在线| 亚洲一区二区三区四区在线| 中文字幕在线不卡视频| 国产日韩综合av| 久久精品这里都是精品| 精品久久一区二区三区| 51精品视频一区二区三区| 欧美视频你懂的| 欧美日韩激情一区二区三区| 欧美网站大全在线观看| 欧美老年两性高潮| 欧美一区二区在线播放| 91精品国产乱码久久蜜臀| 制服丝袜在线91| 日韩一区二区在线观看视频| 日韩午夜精品视频| 欧美成人性战久久| 7777精品伊人久久久大香线蕉的 | 久久se这里有精品| 久久国产精品一区二区| 韩国成人精品a∨在线观看| 国产成人精品一区二区三区网站观看| 国产成人精品亚洲777人妖| 国产91丝袜在线18| 91在线精品一区二区三区| 91福利视频网站| 欧美精品乱码久久久久久| 日韩午夜激情av| 国产天堂亚洲国产碰碰| 亚洲国产激情av| 亚洲女人的天堂| 日韩专区中文字幕一区二区| 精品一区二区成人精品| 成人黄色免费短视频| 欧美在线观看一区| 欧美成人vps| 国产精品成人在线观看| 亚洲国产成人高清精品| 精品制服美女丁香| 色综合久久66| 精品av久久707| 亚洲美女淫视频| 久久激情五月婷婷| 成人国产一区二区三区精品| 欧洲精品视频在线观看| 精品91自产拍在线观看一区| 综合电影一区二区三区 | 欧美伦理影视网| 久久综合国产精品| 亚洲综合男人的天堂| 欧美aaaaa成人免费观看视频| 国产精品一区二区久久精品爱涩| 99v久久综合狠狠综合久久| 欧美日韩高清一区二区不卡| 久久久一区二区| 亚洲高清在线视频| 国产suv一区二区三区88区| 欧美性色综合网| 国产日韩欧美高清| 日韩高清电影一区| 99亚偷拍自图区亚洲| 91精品国产91久久综合桃花| 中文字幕精品在线不卡| 午夜伦理一区二区| 成人免费精品视频| 日韩一区二区三区观看| 亚洲天堂成人网| 九九九久久久精品| 欧美视频日韩视频在线观看| 欧美国产欧美综合| 蜜桃精品在线观看| 在线亚洲高清视频| 国产精品三级av在线播放| 日韩激情视频在线观看| 91麻豆swag| 国产欧美综合在线| 免费一级欧美片在线观看| 99精品一区二区| 久久精品亚洲精品国产欧美| 视频一区二区国产| 91麻豆福利精品推荐| 欧美国产成人在线| 久久99蜜桃精品| 欧美久久久久久久久| 亚洲欧美日韩在线播放| 大白屁股一区二区视频| 精品国产伦一区二区三区观看方式| 亚洲综合一二区| 91在线视频播放| 中文字幕精品一区二区精品绿巨人 | 精品国产伦一区二区三区免费| 视频在线观看一区二区三区| 一本大道av一区二区在线播放 | 免费人成黄页网站在线一区二区| 91色婷婷久久久久合中文| 欧美国产精品v| 国产精品91一区二区| 国产亚洲美州欧州综合国| 国产精品一区二区91| 精品国产亚洲一区二区三区在线观看| 免费在线视频一区| 日韩欧美激情在线| 日本aⅴ免费视频一区二区三区| 制服.丝袜.亚洲.中文.综合| 天天色综合天天| 91精品国产91综合久久蜜臀| 日本中文字幕一区二区有限公司| 欧美精品高清视频| 日韩av成人高清| 日韩美女视频一区二区在线观看| 日韩va亚洲va欧美va久久| 777色狠狠一区二区三区| 日韩电影在线观看网站| 久久综合一区二区| 国产suv精品一区二区三区| 日韩美女久久久| 欧美视频自拍偷拍| 蜜桃精品在线观看| 国产色婷婷亚洲99精品小说| 97久久精品人人爽人人爽蜜臀| 亚洲另类在线视频| 欧美精品日韩一区| 久久99精品久久久久久动态图| 精品成人佐山爱一区二区| 国产91精品在线观看| 成人欧美一区二区三区1314| 色94色欧美sute亚洲线路一久| 亚洲成a人v欧美综合天堂下载| 日韩视频在线你懂得| 国产精品乡下勾搭老头1| 亚洲免费观看高清完整版在线观看熊| 欧美网站大全在线观看| 久久国产精品无码网站| 亚洲欧洲www| 在线不卡欧美精品一区二区三区| 久久成人羞羞网站| 中文字幕制服丝袜成人av| 欧美日韩一级大片网址| 激情综合五月天| 自拍偷拍欧美激情| 欧美高清视频不卡网| 国产麻豆视频一区| 亚洲精品免费视频| 日韩欧美亚洲国产另类| 91猫先生在线| 久久精品国产秦先生| 亚洲视频一区二区免费在线观看| 欧美一级高清片| 一本一道综合狠狠老| 激情综合亚洲精品| 亚洲电影你懂得| 国产视频亚洲色图| 制服丝袜中文字幕亚洲| 91丝袜高跟美女视频| 另类欧美日韩国产在线| 亚洲精品久久久蜜桃| 久久亚洲精华国产精华液| 欧美色图在线观看| 成人免费高清在线| 久久国产夜色精品鲁鲁99| 久久久久久久性| 久久美女艺术照精彩视频福利播放| 亚洲精品美国一| 91污片在线观看| 精品在线亚洲视频| 亚洲电影欧美电影有声小说| 国产精品色婷婷|