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
@@ -105,6 +106,11 @@ The driver options for connection to the remote database or `null` if the target
105
106
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.
106
107
| MAP
107
108
109
+
| defaultLanguage
110
+
|
111
+
The default language for non-constituent remote database aliases or `null` if it is a constituent or local database alias.
112
+
| STRING
113
+
108
114
| properties
109
115
| Any properties set on the database alias.
110
116
| MAP
@@ -168,13 +174,13 @@ SHOW ALIASES FOR DATABASE YIELD *
@@ -358,8 +364,7 @@ A database alias can target a remote database by providing an URL and the creden
358
364
See xref:database-administration/aliases/remote-database-alias-configuration.adoc[] for the necessary configurations.
359
365
360
366
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.
361
-
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.
362
-
There is currently no command to set it explicitly nor change it on existing remote database aliases.
367
+
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`].
363
368
364
369
As with local database aliases, creating remote database aliases allows `IF NOT EXISTS` and `OR REPLACE` clauses.
365
370
Both check for any remote or local database aliases.
@@ -409,7 +414,7 @@ This will be validated when the command is executed.
409
414
* connection_pool_max_size -- for details, see xref:configuration/configuration-settings.adoc#config_dbms.routing.driver.connection.pool.max_size[dbms.routing.driver.connection.pool.max_size].
410
415
* logging_level (For details, see xref:configuration/configuration-settings.adoc#config_dbms.routing.driver.logging.level[dbms.routing.driver.logging.level])
411
416
412
-
The driver settings are set in the `DRIVER` clause of the `CREATE ALIAS` or `ALTER ALIAS commands.
417
+
The driver settings are set in the `DRIVER` clause of the `CREATE ALIAS` or `ALTER ALIAS` commands.
413
418
For example, the following query creates a remote database alias using driver settings `connection_timeout` and
414
419
`connection_pool_max_size` for connecting to the remote database `northwind-graph-2020:
415
420
@@ -444,6 +449,37 @@ SHOW ALIAS `remote-with-driver-settings` FOR DATABASE YIELD *
@@ -481,7 +517,7 @@ SHOW ALIAS `remote-northwind-2021` FOR DATABASE YIELD name, properties
481
517
== Alter database aliases
482
518
483
519
484
-
Database aliases can be altered using `ALTER ALIAS` to change its database target, properties, URL, user credentials, or driver settings.
520
+
Database aliases can be altered using `ALTER ALIAS` to change its database target, properties, URL, user credentials, default language, or driver settings.
485
521
The required privileges are described in the xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-alias-management[The DBMS ALIAS MANAGEMENT privileges].
486
522
Only the clauses used will be altered.
487
523
@@ -565,6 +601,17 @@ ALTER ALIAS `movie scripts` SET DATABASE
565
601
DRIVER {}
566
602
----
567
603
604
+
=== Alter default language for remote database aliases
605
+
606
+
Example of altering a remote database alias default language.
607
+
608
+
.Query
609
+
[source, cypher]
610
+
----
611
+
ALTER ALIAS `remote-with-default-language` SET DATABASE
612
+
DEFAULT LANGUAGE CYPHER 5
613
+
----
614
+
568
615
=== Alter properties for local and remote database aliases
569
616
570
617
Examples of altering local and remote database alias properties.
0 commit comments