cubes_lite/sql/mapping.py
def construct_physical_table(self, name, schema=None):
        """Return a physical table or table expression, regardless whether it
        exists or not in the star."""

        if '.' in name:
            if schema:
                raise ArgumentError('Ambiguous schema in "{}"'.format(name))

            schema, name = name.split('.', 1)

        key = (schema, name)
        table = self._physical_tables.get(key)
        if table is not None:
            return table

        try:
            table = sa.Table(
                name,
                self.metadata,
                autoload=True,
                schema=schema,
            )
        except sa.exc.NoSuchTableError:
            in_schema = ' in schema "{}"'.format(schema) if schema else ''
            msg = 'No such fact table "{}"{}'.format(name, in_schema)
            raise NoSuchTableError(msg)

        self._physical_tables[key] = table

        return table
Return a physical table or table expression, regardless whether it
        exists or not in the star.
Return a physical table or table expression, regardless whether it
exists or not in the star.
Return a physical table or table expression regardless whether it exists or not in the star .
def construct_physical_table(self, name, schema=None):
        if '.' in name:
            if schema:
                raise ArgumentError('Ambiguous schema in "{}"'.format(name))
            schema, name = name.split('.', 1)
        key = (schema, name)
        table = self._physical_tables.get(key)
        if table is not None:
            return table
        try:
            table = sa.Table(
                name,
                self.metadata,
                autoload=True,
                schema=schema,
            )
        except sa.exc.NoSuchTableError:
            in_schema = ' in schema "{}"'.format(schema) if schema else ''
            msg = 'No such fact table "{}"{}'.format(name, in_schema)
            raise NoSuchTableError(msg)
        self._physical_tables[key] = table
        return table
def construct_physical_table ( self , name , schema = None ) : if '.' in name : if schema : raise ArgumentError ( 'Ambiguous schema in "{}"' . format ( name ) ) schema , name = name . split ( '.' , 1 ) key = ( schema , name ) table = self . _physical_tables . get ( key ) if table is not None : return table try : table = sa . Table ( name , self . metadata , autoload = True , schema = schema , ) except sa . exc . NoSuchTableError : in_schema = ' in schema "{}"' . format ( schema ) if schema else '' msg = 'No such fact table "{}"{}' . format ( name , in_schema ) raise NoSuchTableError ( msg ) self . _physical_tables [ key ] = table return table
Return a physical table or table expression, regardless whether it
exists or not in the star.
Return a physical table or table expression regardless whether it exists or not in the star .
"""Return a physical table or table expression, regardless whether it
        exists or not in the star."""
self
name
schema