Data mapping statements
Use the following statements at the routing endpoint of a database cluster group for Aurora to read and change its data mappings. A read reaches no member cluster. A mapping write moves no data. It changes where the routing layer sends statements, and the change reaches the routing layer within a short time. For what an open session sees during that time, see Applying data mapping changes.
On Aurora MySQL, a mapping places a database or a table.
| Statement | What it does |
|---|---|
| SELECT FROM dbclustergroup_sys.data_mappings | Reads the mappings: which member cluster holds each database or table, under which router name, in which collocation. |
| INSERT INTO dbclustergroup_sys.data_mappings | Adds mappings that place databases or tables on member clusters. |
| UPDATE dbclustergroup_sys.data_mappings | Changes the cluster name behind a router name, or repoints or renames a collocation. |
| DELETE FROM dbclustergroup_sys.data_mappings | Removes a mapping. The object on the member cluster stays. |