Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d8b9d30c authored by Bruno Guillon's avatar Bruno Guillon
Browse files

attach/detach: fix Detach and detach method in Attach class

parent 5b6fbb7a
No related branches found
No related tags found
No related merge requests found
Pipeline #1029018 failed
......@@ -25,6 +25,9 @@ class Attach(qb.queries.ddl.DDLQuery):
kwargs["database"] = tokenizer.tokenize_constant(str, self.database)
return kwargs
def detach(self):
return Detach(self.target)
class Detach(qb.queries.ddl.DDLQuery):
__slots__ = ()
......@@ -32,7 +35,6 @@ class Detach(qb.queries.ddl.DDLQuery):
def __init__(
self,
target_or_name: str | qb.atoms.schemas.Schema,
database: str | Literal[":memory:"] = "",
**kwargs,
):
target: qb.atoms.schemas.Schema
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment