MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / table

Function table

lib/sqlalchemy/sql/_selectable_constructors.py:541–560  ·  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

539
540
541def table(name: str, *columns: ColumnClause[Any], **kw: Any) -> TableClause:
542 """Produce a new :class:`_expression.TableClause`.
543
544 The object returned is an instance of
545 :class:`_expression.TableClause`, which
546 represents the "syntactical" portion of the schema-level
547 :class:`_schema.Table` object.
548 It may be used to construct lightweight table constructs.
549
550 :param name: Name of the table.
551
552 :param columns: A collection of :func:`_expression.column` constructs.
553
554 :param schema: The schema name for this table.
555
556 .. versionadded:: 1.3.18 :func:`_expression.table` can now
557 accept a ``schema`` argument.
558 """
559
560 return TableClause(name, *columns, **kw)
561
562
563def 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