代码搜索:sqlalchemy
找到约 184 项符合「sqlalchemy」的源代码
代码结果 184
www.eeworm.com/read/280962/4121186
py poolload.py
# load test of connection pool
import testenv; testenv.configure_for_tests()
import thread, time
from sqlalchemy import *
import sqlalchemy.pool as pool
from testlib import testing
db = create_engine
www.eeworm.com/read/280962/4121193
py ormsession.py
import testenv; testenv.configure_for_tests()
import time
from datetime import datetime
from sqlalchemy import *
from sqlalchemy.orm import *
from testlib import *
from testlib.profiling import profi
www.eeworm.com/read/280962/4121205
py fixtures.py
# can't be imported until the path is setup; be sure to configure
# first if covering.
from sqlalchemy import *
from sqlalchemy import util
from testlib import *
_recursion_stack = util.Set()
class B
www.eeworm.com/read/280962/4121207
py __init__.py
"""Enhance unittest and instrument SQLAlchemy classes for testing.
Load after sqlalchemy imports to use instrumented stand-ins like Table.
"""
import testlib.config
from testlib.schema import Table,
www.eeworm.com/read/280962/4121253
py dynamic.py
import testenv; testenv.configure_for_tests()
import operator
from sqlalchemy import *
from sqlalchemy.orm import *
from testlib import *
from testlib.fixtures import *
from query import QueryTest
c
www.eeworm.com/read/280962/4121260
py cycles.py
import testenv; testenv.configure_for_tests()
from sqlalchemy import *
from sqlalchemy.orm import *
from testlib import *
from testlib.tables import *
"""
Tests cyclical mapper relationships.
We mig
www.eeworm.com/read/280962/4121088
py assignmapper.py
from sqlalchemy import util, exceptions
import types
from sqlalchemy.orm import mapper, Query
def _monkeypatch_query_method(name, ctx, class_):
def do(self, *args, **kwargs):
query = Quer
www.eeworm.com/read/280962/4121181
py masseagerload.py
import testenv; testenv.configure_for_tests()
from sqlalchemy import *
from sqlalchemy.orm import *
from testlib import *
NUM = 500
DIVISOR = 50
meta = MetaData(testing.db)
items = Table('items', me
www.eeworm.com/read/280962/4121189
py insertspeed.py
import testenv; testenv.simple_setup()
import sys, time
from sqlalchemy import *
from sqlalchemy.orm import *
from testlib import profiling
db = create_engine('sqlite://')
metadata = MetaData(db)
Per
www.eeworm.com/read/280962/4121255
py memusage.py
import testenv; testenv.configure_for_tests()
import gc
from sqlalchemy import MetaData, Integer, String, ForeignKey
from sqlalchemy.orm import mapper, relation, clear_mappers, create_session
from sql