lol
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user