MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / table

Function table

lib/sqlalchemy/sql/_selectable_constructors.py:620–637  ·  view source on GitHub ↗

Produce a new :class:`_expression.TableClause`. The object returned is an instance of :class:`_expression.TableClause`, which represents the "syntactical" portion of the schema-level :class:`_schema.Table` object. It may be used to construct lightweight table constructs. :p

(name: str, *columns: ColumnClause[Any], **kw: Any)

Source from the content-addressed store, hash-verified

618
619
620def table(name: str, *columns: ColumnClause[Any], **kw: Any) -> TableClause:
621 """Produce a new :class:`_expression.TableClause`.
622
623 The object returned is an instance of
624 :class:`_expression.TableClause`, which
625 represents the "syntactical" portion of the schema-level
626 :class:`_schema.Table` object.
627 It may be used to construct lightweight table constructs.
628
629 :param name: Name of the table.
630
631 :param columns: A collection of :func:`_expression.column` constructs.
632
633 :param schema: The schema name for this table.
634
635 """
636
637 return TableClause(name, *columns, **kw)
638
639
640def tablesample(

Callers 15

dictionary.pyFile · 0.90
test_distinct_onMethod · 0.90
test_other_exprsMethod · 0.90
test_associativesMethod · 0.90
test_non_associativesMethod · 0.90
test_seven_aMethod · 0.90
test_seven_bMethod · 0.90
test_seven_cMethod · 0.90
test_seven_dMethod · 0.90
IsDistinctFromTestClass · 0.90

Calls 1

TableClauseClass · 0.85

Tested by 15

test_distinct_onMethod · 0.72
test_other_exprsMethod · 0.72
test_associativesMethod · 0.72
test_non_associativesMethod · 0.72
test_seven_aMethod · 0.72
test_seven_bMethod · 0.72
test_seven_cMethod · 0.72
test_seven_dMethod · 0.72
setup_testMethod · 0.72
setup_testMethod · 0.72
test_in_selectMethod · 0.72