代码搜索:sqlalchemy

找到约 184 项符合「sqlalchemy」的源代码

代码结果 184
www.eeworm.com/read/280962/4121195

py threaded_compile.py

"""test that mapper compilation is threadsafe, including when additional mappers are created while the existing collection is being compiled.""" import testenv; testenv.simple_setup() from sqlalchemy
www.eeworm.com/read/280962/4121128

py threadlocal.py

"""Provides a thread-local transactional wrapper around the root Engine class. The ``threadlocal`` module is invoked when using the ``strategy="threadlocal"`` flag with [sqlalchemy.engine#create_engi
www.eeworm.com/read/280962/4121145

py attribute_shard.py

"""a basic example of using the SQLAlchemy Sharding API. Sharding refers to horizontally scaling data across multiple databases. In this example, four sqlite databases will store information about we
www.eeworm.com/read/280962/4121214

py tables.py

"""application table metadata objects are described here.""" from sqlalchemy import * from testlib import * metadata = MetaData() users = Table('users', metadata, Column('user_id', Integer, Se
www.eeworm.com/read/280962/4121235

py case_statement.py

import testenv; testenv.configure_for_tests() import sys from sqlalchemy import * from testlib import * class CaseTest(TestBase): def setUpAll(self): metadata = MetaData(testing.db)
www.eeworm.com/read/280962/4121098

py operators.py

# This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Defines operators used in SQL expressions.""" from operator import
www.eeworm.com/read/280962/4121108

py attributes.py

# attributes.py - manages object attributes # 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:
www.eeworm.com/read/280962/4121197

py utils.py

import testenv; testenv.configure_for_tests() import unittest from sqlalchemy import util, sql, exceptions from testlib import * from testlib import sorted class OrderedDictTest(TestBase): def te
www.eeworm.com/read/280962/4121202

py compat.py

import itertools, new, sys, warnings __all__ = 'set', 'frozenset', 'sorted', '_function_named' try: set = set except NameError: import sets # keep this in sync with sqlalchemy.util.Set
www.eeworm.com/read/280962/4121208

py tables.py

# can't be imported until the path is setup; be sure to configure # first if covering. from sqlalchemy import * from testlib import testing from testlib.schema import Table, Column # these are older