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

All Samples(9)  |  Call(7)  |  Derive(0)  |  Import(2)

src/p/y/Pyfa-HEAD/eos/db/saveddata/queries.py   Pyfa(Download)
#===============================================================================
 
from eos.db.util import processEager, processWhere
from eos.db import saveddata_session, sd_lock
from eos.types import User, Character, Fit, Price, DamagePattern, Fleet, MiscData, Wing, Squad
            filter = and_(filter, Fit.ownerID == ownerID)
 
        filter = processWhere(filter, where)
        eager = processEager(eager)
        with sd_lock:
        filter = and_(filter, Fit.ownerID == ownerID)
 
    filter = processWhere(filter, where)
    eager = processEager(eager)
    with sd_lock:
            filter = and_(filter, Fit.ownerID == ownerID)
 
        filter = processWhere(filter, where)
        eager = processEager(eager)
        with sd_lock:
 
    #Add any extra components to the search to our where clause
    filter = processWhere(Fit.name.like(nameLike, escape="\\"), where)
    eager = processEager(eager)
    with sd_lock:

src/p/y/Pyfa-HEAD/eos/db/gamedata/queries.py   Pyfa(Download)
from sqlalchemy.orm import join, exc
from eos.types import Item, Category, Group, MarketGroup, AttributeInfo, MetaData, MetaGroup
from eos.db.util import processEager, processWhere
import eos.config
 
        raise TypeError("Need integer or string as argument")
 
    filter = processWhere(filter, where)
    return gamedata_session.query(Item).options(*processEager(eager)).join(Item.group, Group.category).filter(filter).all()
 
    for token in nameLike.split(' '):
        token_safe = u"%{0}%".format(sqlizeString(token))
        items = items.filter(processWhere(Item.name.like(token_safe, escape="\\"), where))
    items = items.limit(100).all()
    return items
 
    itemfilter = or_(*(metatypes_table.c.parentTypeID == itemid for itemid in itemids))
    filter = processWhere(itemfilter, where)
    joinon = items_table.c.typeID == metatypes_table.c.typeID
    vars = gamedata_session.query(Item).options(*processEager(eager)).join((metatypes_table, joinon)).filter(filter).all()