You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,6 +107,11 @@ The driver options for connection to the remote database or `null` if the target
106
107
List of xref::database-administration/aliases/manage-aliases-standard-databases.adoc#alias-management-create-remote-database-alias-driver-settings[driver settings] allowed for remote database aliases.
107
108
| MAP
108
109
110
+
| defaultLanguage
111
+
|
112
+
The default language for non-constituent remote database aliases or `null` if it is a constituent or local database alias.
113
+
| STRING
114
+
109
115
| properties
110
116
| Any properties set on the database alias.
111
117
| MAP
@@ -169,13 +175,13 @@ SHOW ALIASES FOR DATABASE YIELD *
@@ -359,8 +365,7 @@ A database alias can target a remote database by providing an URL and the creden
359
365
See xref:database-administration/aliases/remote-database-alias-configuration.adoc[] for the necessary configurations.
360
366
361
367
Since remote database aliases target databases that are not in this DBMS, they do not fetch the default language from their target like the local database aliases.
362
-
Instead, remote database aliases are assigned the default language given by xref:configuration/configuration-settings.adoc#config_db.query.default_language[`db.query.default_language`] on creation.
363
-
There is currently no command to set it explicitly nor change it on existing remote database aliases.
368
+
Instead, remote database aliases can be given a default language on creation, or they are assigned the default language given by xref:configuration/configuration-settings.adoc#config_db.query.default_language[`db.query.default_language`].
364
369
365
370
As with local database aliases, creating remote database aliases allows `IF NOT EXISTS` and `OR REPLACE` clauses.
366
371
Both check for any remote or local database aliases.
@@ -445,6 +450,37 @@ SHOW ALIAS `remote-with-driver-settings` FOR DATABASE YIELD *
@@ -482,7 +518,7 @@ SHOW ALIAS `remote-northwind-2021` FOR DATABASE YIELD name, properties
482
518
== Alter database aliases
483
519
484
520
485
-
Database aliases can be altered using `ALTER ALIAS` to change its database target, properties, URL, user credentials, or driver settings.
521
+
Database aliases can be altered using `ALTER ALIAS` to change its database target, properties, URL, user credentials, default language, or driver settings.
486
522
The required privileges are described in the xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-alias-management[The DBMS ALIAS MANAGEMENT privileges].
487
523
Only the clauses used will be altered.
488
524
@@ -566,6 +602,17 @@ ALTER ALIAS `movie scripts` SET DATABASE
566
602
DRIVER {}
567
603
----
568
604
605
+
=== Alter default language for remote database aliases
606
+
607
+
Example of altering a remote database alias default language.
608
+
609
+
.Query
610
+
[source, cypher]
611
+
----
612
+
ALTER ALIAS `remote-with-default-language` SET DATABASE
613
+
DEFAULT LANGUAGE CYPHER 5
614
+
----
615
+
569
616
=== Alter properties for local and remote database aliases
570
617
571
618
Examples of altering local and remote database alias properties.
0 commit comments