-
Notifications
You must be signed in to change notification settings - Fork 83
Add optional SET keyword for create database clauses in Cypher 25 #2216
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -78,7 +78,9 @@ REQUIRE n.propertyName IS NOT NULL | |||||||||
| [[administration-syntax-database-management]] | ||||||||||
| == Database management command syntax | ||||||||||
|
|
||||||||||
| The below table covers both standard and composite databases. | ||||||||||
| The following tables cover both standard and composite databases. | ||||||||||
|
|
||||||||||
| === Show databases | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
|
|
@@ -99,6 +101,17 @@ YIELD { * \| field[, ...] } [ORDER BY field[, ...]] [SKIP n] [LIMIT n] | |||||||||
| [WHERE expression] | ||||||||||
| [RETURN field[, ...] [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] | ||||||||||
| ---- | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| === Create a database | ||||||||||
|
|
||||||||||
| [.tabbed-example] | ||||||||||
| ===== | ||||||||||
| [role=include-with-Cypher-5] | ||||||||||
| ====== | ||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
|
|
||||||||||
| | CREATE DATABASE | ||||||||||
| | | ||||||||||
|
|
@@ -117,6 +130,42 @@ CREATE OR REPLACE DATABASE name | |||||||||
| [OPTIONS "{" option: value[, ...] "}"] | ||||||||||
| [WAIT [n [SEC[OND[S]]]]\|NOWAIT] | ||||||||||
| ---- | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| ====== | ||||||||||
|
|
||||||||||
| [role=include-with-Cypher-25] | ||||||||||
| ====== | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
| | CREATE DATABASE | ||||||||||
| | | ||||||||||
| [source, syntax, role="noheader"] | ||||||||||
| ---- | ||||||||||
| CREATE DATABASE name [IF NOT EXISTS] | ||||||||||
| [[SET] TOPOLOGY n PRIMAR{Y\|IES} [m SECONDAR{Y\|IES}]] | ||||||||||
| [OPTIONS "{" option: value[, ...] "}"] | ||||||||||
| [WAIT [n [SEC[OND[S]]]]\|NOWAIT] | ||||||||||
| ---- | ||||||||||
|
|
||||||||||
| [source, syntax, role="noheader"] | ||||||||||
| ---- | ||||||||||
| CREATE OR REPLACE DATABASE name | ||||||||||
| [[SET] TOPOLOGY n PRIMAR{Y\|IES} [m SECONDAR{Y\|IES}]] | ||||||||||
| [OPTIONS "{" option: value[, ...] "}"] | ||||||||||
| [WAIT [n [SEC[OND[S]]]]\|NOWAIT] | ||||||||||
| ---- | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| ====== | ||||||||||
| ===== | ||||||||||
| === Create a composite database | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="2m,4a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
|
|
||||||||||
| | CREATE COMPOSITE DATABASE | ||||||||||
| | | ||||||||||
|
|
@@ -133,6 +182,13 @@ CREATE OR REPLACE COMPOSITE DATABASE name | |||||||||
| [OPTIONS "{" "}"] | ||||||||||
| [WAIT [n [SEC[OND[S]]]]\|NOWAIT] | ||||||||||
| ---- | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| === Alter a database | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
|
|
||||||||||
| | ALTER DATABASE | ||||||||||
| | | ||||||||||
|
|
@@ -158,21 +214,41 @@ REMOVE OPTION option | |||||||||
| ==== | ||||||||||
| There can be multiple `SET OPTION` or `REMOVE OPTION` clauses for different option keys. | ||||||||||
| ==== | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| === Stop a database | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
|
|
||||||||||
| | STOP DATABASE | ||||||||||
| | | ||||||||||
| [source, syntax, role="noheader"] | ||||||||||
| ---- | ||||||||||
| STOP DATABASE name [WAIT [n [SEC[OND[S]]]]\|NOWAIT] | ||||||||||
| ---- | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| === Start a database | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
|
|
||||||||||
| | START DATABASE | ||||||||||
| | | ||||||||||
| [source, syntax, role="noheader"] | ||||||||||
| ---- | ||||||||||
| START DATABASE name [WAIT [n [SEC[OND[S]]]]\|NOWAIT] | ||||||||||
| ---- | ||||||||||
| |=== | ||||||||||
|
|
||||||||||
| === Delete a database | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1m,5a"] | ||||||||||
| |=== | ||||||||||
| | Command | Syntax | ||||||||||
|
|
||||||||||
| | DROP DATABASE | ||||||||||
| | | ||||||||||
|
|
@@ -186,10 +262,14 @@ DROP [COMPOSITE] DATABASE name [IF EXISTS] [RESTRICT \| CASCADE ALIAS[ES]] [{DUM | |||||||||
| [[administration-syntax-database-alias-management]] | ||||||||||
| == Database alias management command syntax | ||||||||||
|
|
||||||||||
| [options="header", width="100%", cols="1,5a"] | ||||||||||
| The following tables cover both local and remote database aliases. | ||||||||||
|
||||||||||
| The following tables cover both local and remote database aliases. | |
| The following tables cover local and remote database 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.
No I do not think removing 'both' helps. I interpret this sentence as each of the following tables (unclear how many) covers both local and remote alias, which is not true. Some tables cover both, some cover local and some cover remote if I understand the layout of the page correctly
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.
Maybe it is just me that interpret the sentence incorrectly, if you think it is correct already I am fine with leaving it. Same for my other comment which is about the same thing but in another place
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.
| The following tables cover both local and remote database aliases. | |
| The following sections cover the commands related to local and remote database aliases. |
is that better?
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.
or feel free to come up with your own suggestion
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.
the sentence isn't supposed to talk about just the next one so changing to The following table isn't the way to go
Uh oh!
There was an error while loading. Please reload this page.