MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/selectable.py:3215–3232  ·  view source on GitHub ↗
(self, name: str, *columns: ColumnClause[Any], **kw: Any)

Source from the content-addressed store, hash-verified

3213 return None
3214
3215 def __init__(self, name: str, *columns: ColumnClause[Any], **kw: Any):
3216 super().__init__()
3217 self.name = name
3218 self._columns = DedupeColumnCollection() # type: ignore[unused-ignore]
3219 self.primary_key = ColumnSet() # type: ignore
3220 self.foreign_keys = set() # type: ignore
3221 for c in columns:
3222 self.append_column(c)
3223
3224 schema = kw.pop("schema", None)
3225 if schema is not None:
3226 self.schema = schema
3227 if self.schema is not None:
3228 self.fullname = "%s.%s" % (self.schema, self.name)
3229 else:
3230 self.fullname = self.name
3231 if kw:
3232 raise exc.ArgumentError("Unsupported argument(s): %s" % list(kw))
3233
3234 if TYPE_CHECKING:
3235

Callers

nothing calls this directly

Calls 5

append_columnMethod · 0.95
ColumnSetClass · 0.85
__init__Method · 0.45
popMethod · 0.45

Tested by

no test coverage detected