This commit is contained in:
2025-05-22 20:25:38 +02:00
parent 09f6750c2b
commit ce03fbf12f
529 changed files with 3353 additions and 3312 deletions

View File

@@ -403,17 +403,14 @@ class DDL(ExecutableDDLElement):
self.context = context or {}
def __repr__(self):
parts = [repr(self.statement)]
if self.context:
parts.append(f"context={self.context}")
return "<%s@%s; %s>" % (
type(self).__name__,
id(self),
", ".join(
[repr(self.statement)]
+ [
"%s=%r" % (key, getattr(self, key))
for key in ("on", "context")
if getattr(self, key)
]
),
", ".join(parts),
)
@@ -470,7 +467,7 @@ class CreateSchema(_CreateBase):
__visit_name__ = "create_schema"
stringify_dialect = "default" # type: ignore
stringify_dialect = "default"
def __init__(
self,
@@ -491,7 +488,7 @@ class DropSchema(_DropBase):
__visit_name__ = "drop_schema"
stringify_dialect = "default" # type: ignore
stringify_dialect = "default"
def __init__(
self,