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

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

?? interfaces.py

?? SQLAlchemy. 經典的Python ORM框架。學習必看。
?? PY
?? 第 1 頁 / 共 2 頁
字號:
# interfaces.py# Copyright (C) 2005, 2006, 2007, 2008 Michael Bayer mike_mp@zzzcomputing.com## This module is part of SQLAlchemy and is released under# the MIT License: http://www.opensource.org/licenses/mit-license.php"""Semi-private implementation objects which form the basisof ORM-mapped attributes, query options and mapper extension.Defines the [sqlalchemy.orm.interfaces#MapperExtension] class,which can be end-user subclassed to add event-based functionalityto mappers.  The remainder of this module is generally private to theORM."""from itertools import chainfrom sqlalchemy import exceptions, loggingfrom sqlalchemy.sql import expressionclass_mapper = None__all__ = ['EXT_CONTINUE', 'EXT_STOP', 'EXT_PASS', 'MapperExtension',           'MapperProperty', 'PropComparator', 'StrategizedProperty',           'build_path', 'MapperOption',           'ExtensionOption', 'PropertyOption',           'AttributeExtension', 'StrategizedOption', 'LoaderStrategy' ]EXT_CONTINUE = EXT_PASS = object()EXT_STOP = object()class MapperExtension(object):    """Base implementation for customizing Mapper behavior.    For each method in MapperExtension, returning a result of EXT_CONTINUE    will allow processing to continue to the next MapperExtension in line or    use the default functionality if there are no other extensions.    Returning EXT_STOP will halt processing of further extensions handling    that method.  Some methods such as ``load`` have other return    requirements, see the individual documentation for details.  Other than    these exception cases, any return value other than EXT_CONTINUE or    EXT_STOP will be interpreted as equivalent to EXT_STOP.    EXT_PASS is a synonym for EXT_CONTINUE and is provided for backward    compatibility.    """    def instrument_class(self, mapper, class_):        return EXT_CONTINUE    def init_instance(self, mapper, class_, oldinit, instance, args, kwargs):        return EXT_CONTINUE    def init_failed(self, mapper, class_, oldinit, instance, args, kwargs):        return EXT_CONTINUE    def get_session(self):        """Retrieve a contextual Session instance with which to        register a new object.        Note: this is not called if a session is provided with the        `__init__` params (i.e. `_sa_session`).        """        return EXT_CONTINUE    def load(self, query, *args, **kwargs):        """Override the `load` method of the Query object.        The return value of this method is used as the result of        ``query.load()`` if the value is anything other than EXT_CONTINUE.        """        return EXT_CONTINUE    def get(self, query, *args, **kwargs):        """Override the `get` method of the Query object.        The return value of this method is used as the result of        ``query.get()`` if the value is anything other than EXT_CONTINUE.        """        return EXT_CONTINUE    def get_by(self, query, *args, **kwargs):        """Override the `get_by` method of the Query object.        The return value of this method is used as the result of        ``query.get_by()`` if the value is anything other than        EXT_CONTINUE.        DEPRECATED.        """        return EXT_CONTINUE    def select_by(self, query, *args, **kwargs):        """Override the `select_by` method of the Query object.        The return value of this method is used as the result of        ``query.select_by()`` if the value is anything other than        EXT_CONTINUE.        DEPRECATED.        """        return EXT_CONTINUE    def select(self, query, *args, **kwargs):        """Override the `select` method of the Query object.        The return value of this method is used as the result of        ``query.select()`` if the value is anything other than        EXT_CONTINUE.        DEPRECATED.        """        return EXT_CONTINUE    def translate_row(self, mapper, context, row):        """Perform pre-processing on the given result row and return a        new row instance.        This is called as the very first step in the ``_instance()``        method.        """        return EXT_CONTINUE    def create_instance(self, mapper, selectcontext, row, class_):        """Receive a row when a new object instance is about to be        created from that row.        The method can choose to create the instance itself, or it can return        EXT_CONTINUE to indicate normal object creation should take place.        mapper          The mapper doing the operation        selectcontext          SelectionContext corresponding to the instances() call        row          The result row from the database        class\_          The class we are mapping.        return value          A new object instance, or EXT_CONTINUE        """        return EXT_CONTINUE    def append_result(self, mapper, selectcontext, row, instance, result, **flags):        """Receive an object instance before that instance is appended        to a result list.        If this method returns EXT_CONTINUE, result appending will proceed        normally.  if this method returns any other value or None,        result appending will not proceed for this instance, giving        this extension an opportunity to do the appending itself, if        desired.        mapper          The mapper doing the operation.        selectcontext          SelectionContext corresponding to the instances() call.        row          The result row from the database.        instance          The object instance to be appended to the result.        result          List to which results are being appended.        \**flags          extra information about the row, same as criterion in          `create_row_processor()` method of [sqlalchemy.orm.interfaces#MapperProperty]        """        return EXT_CONTINUE    def populate_instance(self, mapper, selectcontext, row, instance, **flags):        """Receive a newly-created instance before that instance has        its attributes populated.        The normal population of attributes is according to each        attribute's corresponding MapperProperty (which includes        column-based attributes as well as relationships to other        classes).  If this method returns EXT_CONTINUE, instance        population will proceed normally.  If any other value or None        is returned, instance population will not proceed, giving this        extension an opportunity to populate the instance itself, if        desired.        """        return EXT_CONTINUE    def before_insert(self, mapper, connection, instance):        """Receive an object instance before that instance is INSERTed        into its table.        This is a good place to set up primary key values and such        that aren't handled otherwise.        Column-based attributes can be modified within this method which will        result in the new value being inserted.  However *no* changes to the overall        flush plan can be made; this means any collection modification or        save() operations which occur within this method will not take effect        until the next flush call.        """        return EXT_CONTINUE    def after_insert(self, mapper, connection, instance):        """Receive an object instance after that instance is INSERTed."""        return EXT_CONTINUE    def before_update(self, mapper, connection, instance):        """Receive an object instance before that instance is UPDATEed.        Note that this method is called for all instances that are marked as        "dirty", even those which have no net changes to their column-based        attributes.  An object is marked as dirty when any of its column-based        attributes have a "set attribute" operation called or when any of its        collections are modified.  If, at update time, no column-based attributes        have any net changes, no UPDATE statement will be issued.  This means        that an instance being sent to before_update is *not* a guarantee that        an UPDATE statement will be issued (although you can affect the outcome        here).        To detect if the column-based attributes on the object have net changes,        and will therefore generate an UPDATE statement, use        ``object_session(instance).is_modified(instance, include_collections=False)``.        Column-based attributes can be modified within this method which will        result in their being updated.  However *no* changes to the overall        flush plan can be made; this means any collection modification or        save() operations which occur within this method will not take effect        until the next flush call.        """        return EXT_CONTINUE    def after_update(self, mapper, connection, instance):        """Receive an object instance after that instance is UPDATEed."""        return EXT_CONTINUE    def before_delete(self, mapper, connection, instance):        """Receive an object instance before that instance is DELETEed.        Note that *no* changes to the overall        flush plan can be made here; this means any collection modification,        save() or delete() operations which occur within this method will        not take effect until the next flush call.        """        return EXT_CONTINUE    def after_delete(self, mapper, connection, instance):        """Receive an object instance after that instance is DELETEed."""        return EXT_CONTINUEclass MapperProperty(object):    """Manage the relationship of a ``Mapper`` to a single class    attribute, as well as that attribute as it appears on individual    instances of the class, including attribute instrumentation,    attribute access, loading behavior, and dependency calculations.    """    def setup(self, querycontext, **kwargs):        """Called by Query for the purposes of constructing a SQL statement.        Each MapperProperty associated with the target mapper processes the        statement referenced by the query context, adding columns and/or        criterion as appropriate.        """        pass    def create_row_processor(self, selectcontext, mapper, row):        """Return a 3-tuple consiting of two row processing functions and an instance post-processing function.        Input arguments are the query.SelectionContext and the *first*        applicable row of a result set obtained within        query.Query.instances(), called only the first time a particular        mapper's populate_instance() method is invoked for the overall result.        The settings contained within the SelectionContext as well as the        columns present in the row (which will be the same columns present in        all rows) are used to determine the presence and behavior of the        returned callables.  The callables will then be used to process all        rows and to post-process all instances, respectively.        Callables are of the following form::            def new_execute(instance, row, **flags):                # process incoming instance and given row.  the instance is                # "new" and was just created upon receipt of this row.                # flags is a dictionary containing at least the following                # attributes:                #   isnew - indicates if the instance was newly created as a                #           result of reading this row                #   instancekey - identity key of the instance                # optional attribute:                #   ispostselect - indicates if this row resulted from a                #                  'post' select of additional tables/columns            def existing_execute(instance, row, **flags):                # process incoming instance and given row.  the instance is                # "existing" and was created based on a previous row.            def post_execute(instance, **flags):                # process instance after all result rows have been processed.                # this function should be used to issue additional selections                # in order to eagerly load additional properties.            return (new_execute, existing_execute, post_execute)        Either of the three tuples can be ``None`` in which case no function        is called.        """        raise NotImplementedError()    def cascade_iterator(self, type, object, recursive=None, halt_on=None):        """Iterate through instances related to the given instance along        a particular 'cascade' path, starting with this MapperProperty.        See PropertyLoader for the related instance implementation.        """        return iter([])    def get_criterion(self, query, key, value):        """Return a ``WHERE`` clause suitable for this        ``MapperProperty`` corresponding to the given key/value pair,        where the key is a column or object property name, and value        is a value to be matched.  This is only picked up by

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亚洲第一区在线暖暖韩国| 另类调教123区| 亚洲精品在线免费观看视频| 欧美精品久久久久久久久老牛影院| 一本大道久久精品懂色aⅴ| 99综合影院在线| 91久久香蕉国产日韩欧美9色| 91丨porny丨最新| 在线视频欧美精品| 欧美日韩免费在线视频| 欧美疯狂性受xxxxx喷水图片| 欧美激情艳妇裸体舞| 专区另类欧美日韩| 亚洲午夜在线观看视频在线| 午夜精品一区在线观看| 久久精品国产澳门| 欧美体内she精视频| 日韩一区二区精品在线观看| 久久久久久久久99精品| 亚洲欧美另类在线| 日韩国产高清在线| 国产一区二区精品久久99| 高清在线不卡av| 欧美性猛交xxxx乱大交退制版| 亚洲国产成人午夜在线一区| 精品制服美女丁香| 99精品热视频| 91精品欧美综合在线观看最新 | 亚洲国产欧美日韩另类综合| 国产 欧美在线| 久久久久久久久99精品| 国内欧美视频一区二区| 色综合久久综合网欧美综合网| 久久精品在线观看| 亚洲一区二三区| 国产精品69毛片高清亚洲| 精品免费视频一区二区| 国产精品1区二区.| 亚洲成人在线网站| 精品一区二区三区影院在线午夜| 欧美videossexotv100| 亚洲第一在线综合网站| 91欧美一区二区| 亚洲色图视频网| 91搞黄在线观看| 伊人婷婷欧美激情| 国产一区二区91| 国产日韩亚洲欧美综合| 日韩成人av影视| 日韩免费福利电影在线观看| 亚洲精品日产精品乱码不卡| 色综合中文字幕| 久久这里都是精品| 日韩电影免费一区| 精品久久人人做人人爰| 国产一区二区三区在线观看免费视频| 26uuu国产电影一区二区| 99久久精品免费精品国产| 亚洲天堂精品视频| 极品尤物av久久免费看| 久久久久久久久久久久久久久99| 福利视频网站一区二区三区| 亚洲视频狠狠干| 91麻豆精品国产91久久久久久久久| 麻豆91在线播放免费| 色狠狠一区二区| 日本亚洲一区二区| 欧美激情一区二区三区全黄| 欧美自拍偷拍一区| 精品中文av资源站在线观看| 中文字幕亚洲成人| 国产成人午夜视频| 久久久91精品国产一区二区精品| 91麻豆免费视频| 秋霞电影一区二区| 日韩一区二区三区视频在线观看| 国产精品一品视频| 亚洲国产精品自拍| 国产亚洲成aⅴ人片在线观看| 色综合天天狠狠| 欧美亚洲综合另类| 国产色一区二区| 亚洲一区二区成人在线观看| 六月丁香婷婷色狠狠久久| 国产日韩欧美综合一区| 色成人在线视频| 国内欧美视频一区二区| 亚洲黄色免费网站| 国产日产欧美一区| 欧美一三区三区四区免费在线看| 一区二区三区在线视频免费观看| 色欧美日韩亚洲| 国产在线精品一区在线观看麻豆| 一区二区三区在线视频观看58 | 欧美mv日韩mv国产网站app| 成人高清视频在线观看| 国产精品毛片久久久久久久| 97精品超碰一区二区三区| 久久精品国产色蜜蜜麻豆| 一区二区高清在线| 不卡一区二区三区四区| av欧美精品.com| 精久久久久久久久久久| 五月婷婷久久丁香| 亚洲另类色综合网站| 国产精品蜜臀av| 欧美激情一区二区三区全黄| 久久综合视频网| 日韩欧美国产一区二区在线播放| 欧美日韩免费在线视频| 色噜噜狠狠一区二区三区果冻| 成人国产精品免费| 不卡的av在线播放| 粉嫩av一区二区三区粉嫩 | 亚洲国产精品成人综合| 精品电影一区二区三区| 日韩精品一区在线观看| 91精品国产黑色紧身裤美女| 欧美妇女性影城| 欧美一区二区视频观看视频| 欧美一区二区三区在线看| 欧美精品久久久久久久久老牛影院| 欧美午夜理伦三级在线观看| 国产亚洲精品超碰| 欧美欧美欧美欧美首页| 日韩三级电影网址| 樱花影视一区二区| 亚洲综合精品自拍| 亚洲一区欧美一区| 午夜欧美电影在线观看| 婷婷久久综合九色国产成人| 日韩专区欧美专区| 久久精品免费在线观看| 久久久久久久久久久久电影| 国产亚洲va综合人人澡精品| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 精品亚洲成a人| 国产美女一区二区三区| 丰满亚洲少妇av| 色狠狠av一区二区三区| 色噜噜狠狠色综合中国| 欧美性猛片aaaaaaa做受| 欧美猛男超大videosgay| 日韩欧美亚洲国产精品字幕久久久| 欧美电视剧在线看免费| 国产精品久久久久婷婷| 精品国产乱码久久久久久久| 国产日韩精品一区二区三区在线| 国产精品久久久久影院亚瑟| 亚洲福利一区二区| 精品一区二区国语对白| 成人黄色777网| 欧美日韩国产精品自在自线| 精品999在线播放| 亚洲老司机在线| 蜜桃av噜噜一区二区三区小说| 国产成人av电影在线播放| 色狠狠av一区二区三区| 精品对白一区国产伦| 亚洲蜜桃精久久久久久久| 久久av老司机精品网站导航| 99久久久无码国产精品| 日韩一区二区视频| 亚洲欧美日韩一区二区| 久久97超碰色| 欧美性生交片4| 国产精品网站在线观看| 日本不卡123| 色噜噜狠狠色综合欧洲selulu| 欧美成人精品高清在线播放| 亚洲男女毛片无遮挡| 国产成人午夜99999| 欧美日韩国产123区| 1024成人网| 国产一区在线观看视频| 欧美日韩三级在线| 国产精品美女久久久久久久久久久| 日韩不卡一区二区| 色老综合老女人久久久| 欧美激情一区不卡| 精品制服美女久久| 欧美欧美午夜aⅴ在线观看| 亚洲欧洲三级电影| 国产成人综合网| 欧美变态凌虐bdsm| 日韩电影免费一区| 欧美色倩网站大全免费| 国产精品成人一区二区三区夜夜夜| 美女视频第一区二区三区免费观看网站 | 国产综合色在线| 国产精品护士白丝一区av| 久久综合资源网| 亚洲狠狠爱一区二区三区| 不卡一区二区三区四区| 久久色成人在线| 激情av综合网| 欧美α欧美αv大片| 免费看日韩精品| 制服.丝袜.亚洲.另类.中文 | 亚洲综合丁香婷婷六月香|