Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)
<comment-ja>
Karesansui?????????????
@param engine: ??????????
@type engine: SQLAlchemy#Engine
@rtype: SQLAlchemy#MetaData
@return ?????
</comment-ja>
<comment-en>
TODO: English Comment
</comment-en>

        def get_metadata(engine=None):
    """
    Karesansui?????????????
    @param engine: ??????????
    @type engine: SQLAlchemy#Engine
    @rtype: SQLAlchemy#MetaData
    @return ?????
    
    
    TODO: English Comment
    
    """
    global __metadata
    if engine is None:
        engine = get_engine()
    if __metadata is None:
        __metadata = MetaData(engine)
        mapper(__metadata)
    return __metadata
        


src/k/a/karesansui-HEAD/karesansui/app.py   karesansui(Download)
    # sqlite not supported.
    Session = sqlalchemy.orm.sessionmaker(twophase=True)
    Session.configure(binds={karesansui.db.get_metadata():karesansui.db.get_engine(),
                             karesansui.db._2pysilhouette.get_metadata():karesansui.db._2pysilhouette.get_engine(),
                             })
    import karesansui.db
    kss_engine = karesansui.db.get_engine()
    kss_metadata = karesansui.db.get_metadata()
    kss_session = karesansui.db.get_session()
    # pysilhouette

src/k/a/karesansui-HEAD/karesansui/gadget/init.py   karesansui(Download)
from karesansui.lib.crypt import sha1encrypt, sha1compare
from karesansui.lib.const import MACHINE_ATTRIBUTE, MACHINE_HYPERVISOR
from karesansui.db import get_engine, get_metadata, get_session
from karesansui.db.model.user import User
from karesansui.db.model.notebook import Notebook
 
        engine = get_engine()
        metadata = get_metadata()
        session = get_session()
 

src/k/a/karesansui-HEAD/tools/initialize_database.py   karesansui(Download)
    from karesansui.lib.crypt import sha1encrypt
    from karesansui.lib.const import MACHINE_ATTRIBUTE, MACHINE_HYPERVISOR
    from karesansui.db import get_engine, get_metadata, get_session
    from karesansui.db.model.user import User
    from karesansui.db.model.notebook import Notebook
 
engine = get_engine()
metadata = get_metadata()
 
try:

src/k/a/karesansui-HEAD/karesansui/lib/collectd/utils.py   karesansui(Download)
def query_watch_data(plugin,plugin_instance,type,type_instance,ds,host=None):
    import karesansui.db
    kss_engine   = karesansui.db.get_engine()
    kss_metadata = karesansui.db.get_metadata()
    kss_session  = karesansui.db.get_session()