Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
Return associated version table for given SQLAlchemy Table object.

:param table: SQLAlchemy Table object

        def version_table(table):
    """
    Return associated version table for given SQLAlchemy Table object.

    :param table: SQLAlchemy Table object
    """
    if table.metadata.schema:
        return table.metadata.tables[
            table.metadata.schema + '.' + table.name + '_version'
        ]
    else:
        return table.metadata.tables[
            table.name + '_version'
        ]
        


src/s/q/SQLAlchemy-Continuum-1.0-b4/sqlalchemy_continuum/relationship_builder.py   SQLAlchemy-Continuum(Download)
import sqlalchemy as sa
from .table_builder import TableBuilder
from .expression_reflector import ObjectExpressionReflector
from .operation import Operation
from .utils import version_table, version_class, option
                    break
 
            self.remote_table = version_table(self.remote_column.table)
        setattr(
            self.local_cls,

src/s/q/sqlalchemy-continuum-HEAD/sqlalchemy_continuum/relationship_builder.py   sqlalchemy-continuum(Download)
from .operation import Operation
from .table_builder import TableBuilder
from .utils import version_table, version_class, option
 
 
                    break
 
            self.remote_table = version_table(self.remote_column.table)
        setattr(
            self.local_cls,

src/s/q/sqlalchemy-continuum-HEAD/sqlalchemy_continuum/expression_reflector.py   sqlalchemy-continuum(Download)
from sqlalchemy.sql.expression import bindparam
 
from sqlalchemy_utils import ExpressionParser
from .utils import version_table
 
    def column(self, column):
        try:
            table = version_table(column.table)
        except KeyError:
            return column

src/s/q/SQLAlchemy-Continuum-1.0-b4/sqlalchemy_continuum/expression_reflector.py   SQLAlchemy-Continuum(Download)
    BindParameter
)
from .utils import version_table
 
 
        """
        if isinstance(parameter, sa.Column):
            table = version_table(parameter.table)
            if self.parent and table == self.parent.__table__:
                return getattr(self.parent, parameter.name)