-
Couldn't load subscription status.
- Fork 83
Add DROP DATABASE name CASCADE ALIASES
#1805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DROP DATABASE name CASCADE ALIASES
#1805
Conversation
to drop any aliases blocking the deletion of the database
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Mark Dixon <[email protected]>
|
@renetapopova I guess you are busy with the linked users PR, but I'm just looking at the status of my open PRs and want to know that this one hasn't been forgotten about :) |
Actually, I added some comments, but I wanted to look at it again. I'll submit them now and look at the PR again later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some suggestions.
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
I've updated some of them so hopefully that helps when looking at it again |
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Show resolved
Hide resolved
…delete-databases.adoc
…delete-databases.adoc
…/delete-composite-databases.adoc
…/delete-composite-databases.adoc
…delete-databases.adoc
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
|
|
||
| This behavior is the same for the more general command `DROP DATABASE name` when using it to drop a composite database. | ||
|
|
||
| The option `RESTRICT` explicitly requests the default behavior of the command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this section don't have a syntax description nor mention RESTRICT before this point, this sentence sticks out weirdly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I had this question in my mind: What is the default behavior of the command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to throw an error when there exists aliases (for composite its constituent aliases and for standard it's local ones targeting it), so the behaviour if you don't write CASCADE ALIASES
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok. And when or why would one use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see people using it as it means the same as leaving it out, but it is there for consistency. We do allow you to specify the default behaviours of DUMP DATA/NOWAIT so why wouldn't we allow you to specify RESTRICT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what to write then. I'll leave it out until we come up with something useful for the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think leaving it out on the composite page is fine
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good now. @Hunterness, could you please take a look? Thanks
…/delete-composite-databases.adoc Co-authored-by: Therese Magnusson <[email protected]>
…delete-databases.adoc Co-authored-by: Therese Magnusson <[email protected]>
…delete-databases.adoc Co-authored-by: Therese Magnusson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this I think would fix the example formatting
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
|
@Hunterness, any final comments? |
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
|
|
||
| This behavior is the same for the more general command `DROP DATABASE name` when using it to drop a composite database. | ||
|
|
||
| The option `RESTRICT` explicitly requests the default behavior of the command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see people using it as it means the same as leaving it out, but it is there for consistency. We do allow you to specify the default behaviours of DUMP DATA/NOWAIT so why wouldn't we allow you to specify RESTRICT
modules/ROOT/pages/database-administration/composite-databases/delete-composite-databases.adoc
Outdated
Show resolved
Hide resolved
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Outdated
Show resolved
Hide resolved
…delete-databases.adoc
…/delete-composite-databases.adoc
modules/ROOT/pages/database-administration/standard-databases/delete-databases.adoc
Show resolved
Hide resolved
…delete-databases.adoc Co-authored-by: Therese Magnusson <[email protected]>
|
Thanks for the documentation updates. The preview documentation has now been torn down - reopening this PR will republish it. |
Companion Pr to neo4j/docs-operations#1805, ~~should probably wait for that to go in.~~ Documenting neo-technology/neo4j#26465, ~~needs to wait until that has been merged.~~ --------- Co-authored-by: Jens Pryce-Åklundh <[email protected]>
Companion Pr to neo4j/docs-operations#1805, ~~should probably wait for that to go in.~~ Documenting neo-technology/neo4j#26465, ~~needs to wait until that has been merged.~~ --------- Co-authored-by: Jens Pryce-Åklundh <[email protected]>
to drop any aliases blocking the deletion of the database Documenting neo-technology/neo4j#26465, ~~needs to wait until that has been merged.~~ --------- Co-authored-by: Mark Dixon <[email protected]> Co-authored-by: Reneta Popova <[email protected]>
to drop any aliases blocking the deletion of the database
Documenting https://github.com/neo-technology/neo4j/pull/26465,
needs to wait until that has been merged.