Skip to content

Commit 7ac5d93

Browse files
committed
CASSANDRA-21342: Retarget commands-toc.adoc xrefs to consolidated CQL anchors
Follow-up to the trunk PR #4807 forward-merge for cassandra-5.0. The trunk R1 commit (8e0700a on the chain leading to 32826fe) rewrote reference/cql-commands/commands-toc.adoc to retarget 38 broken xref:reference/cql-commands/<page>.adoc[...] entries to the corresponding anchors in developing/cql/{ddl,dml,functions,mvs, security,types}.adoc, kept 6 entries that still resolve under cassandra:reference/cql-commands/, and dropped 4 DSE-only entries (RESTRICT, RESTRICT ROWS, UNRESTRICT, UNRESTRICT ROWS). The same transformation is applied here to cassandra-5.0. The trunk commit was not cherry-pickable because 5.0's commands-toc.adoc had diverged from trunk's pre-R1 version by ~9 lines (the DSE-only entries plus an unrelated formatting drift); a direct edit replacing the file with trunk's post-R1 content was the cleanest application. One trunk-only entry is omitted: LIST SUPERUSERS (target developing/cql/security.adoc#list-superusers-statement). That anchor does not exist on cassandra-5.0; the LIST SUPERUSERS command was added after 5.0. All 29 retarget anchors plus the 6 cassandra:reference/cql-commands/ target pages verified to exist on upstream/cassandra-5.0. patch by Patrick McFadin; reviewed by TBD for CASSANDRA-21342
1 parent 9733058 commit 7ac5d93

1 file changed

Lines changed: 38 additions & 50 deletions

File tree

doc/modules/cassandra/pages/reference/cql-commands/commands-toc.adoc

Lines changed: 38 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,123 +4,111 @@
44
This section describes the Cassandra Query Language (CQL) commands supported by the {product} database.
55

66
'''
7-
xref:reference/cql-commands/alter-keyspace.adoc[ALTER KEYSPACE] ::
7+
xref:cassandra:developing/cql/ddl.adoc#alter-keyspace-statement[ALTER KEYSPACE] ::
88
Changes keyspace replication strategy and enables or disables commit log.
99

10-
xref:reference/cql-commands/alter-materialized-view.adoc[ALTER MATERIALIZED VIEW] ::
10+
xref:cassandra:developing/cql/mvs.adoc#alter-materialized-view-statement[ALTER MATERIALIZED VIEW] ::
1111
Changes the table properties of a materialized view.
1212

13-
xref:reference/cql-commands/alter-role.adoc[ALTER ROLE] ::
13+
xref:cassandra:developing/cql/security.adoc#alter-role-statement[ALTER ROLE] ::
1414
Changes password and sets superuser or login options.
1515

16-
xref:reference/cql-commands/alter-table.adoc[ALTER TABLE] ::
16+
xref:cassandra:reference/cql-commands/alter-table.adoc[ALTER TABLE] ::
1717
Modifies the columns and properties of a table, or modify
1818

19-
xref:reference/cql-commands/alter-type.adoc[ALTER TYPE] ::
19+
xref:cassandra:developing/cql/types.adoc#udts[ALTER TYPE] ::
2020
Modifies an existing user-defined type (UDT).
2121

22-
xref:reference/cql-commands/alter-user.adoc[ALTER USER (Deprecated)] ::
22+
xref:cassandra:developing/cql/security.adoc#alter-user-statement[ALTER USER (Deprecated)] ::
2323
Deprecated. Alter existing user options.
2424

25-
xref:reference/cql-commands/batch.adoc[BATCH] ::
25+
xref:cassandra:developing/cql/dml.adoc#batch_statement[BATCH] ::
2626
Applies multiple data modification language (DML) statements with atomicity and/or in isolation.
2727

28-
xref:reference/cql-commands/create-aggregate.adoc[CREATE AGGREGATE] ::
28+
xref:cassandra:developing/cql/functions.adoc#create-aggregate-statement[CREATE AGGREGATE] ::
2929
Defines a user-defined aggregate.
30-
xref:reference/cql-commands/create-custom-index.adoc[CREATE CUSTOM INDEX] ::
30+
xref:cassandra:reference/cql-commands/create-custom-index.adoc[CREATE CUSTOM INDEX] ::
3131
Creates a storage-attached index.
3232

33-
xref:reference/cql-commands/create-function.adoc[CREATE FUNCTION] ::
33+
xref:cassandra:developing/cql/functions.adoc#create-function-statement[CREATE FUNCTION] ::
3434
Creates custom function to execute user provided code.
3535

36-
xref:reference/cql-commands/create-index.adoc[CREATE INDEX] ::
36+
xref:cassandra:reference/cql-commands/create-index.adoc[CREATE INDEX] ::
3737
Defines a new index for a single column of a table.
3838

39-
xref:reference/cql-commands/create-keyspace.adoc[CREATE KEYSPACE] ::
39+
xref:cassandra:developing/cql/ddl.adoc#create-keyspace-statement[CREATE KEYSPACE] ::
4040

41-
xref:reference/cql-commands/create-materialized-view.adoc[CREATE MATERIALIZED VIEW] ::
41+
xref:cassandra:developing/cql/mvs.adoc#create-materialized-view-statement[CREATE MATERIALIZED VIEW] ::
4242
Optimizes read requests and eliminates the need for multiple write requests by duplicating data from a base table.
4343

44-
xref:reference/cql-commands/create-role.adoc[CREATE ROLE] ::
44+
xref:cassandra:developing/cql/security.adoc#create-role-statement[CREATE ROLE] ::
4545
Creates a cluster wide database object used for access control.
4646

47-
xref:reference/cql-commands/create-table.adoc[CREATE TABLE] ::
47+
xref:cassandra:reference/cql-commands/create-table.adoc[CREATE TABLE] ::
4848
Creates a new table.
4949

50-
xref:reference/cql-commands/create-type.adoc[CREATE TYPE] ::
50+
xref:cassandra:developing/cql/types.adoc#udts[CREATE TYPE] ::
5151
Creates a custom data type in the keyspace that contains one or more fields of related information.
5252

53-
xref:reference/cql-commands/create-user.adoc[CREATE USER (Deprecated)] ::
53+
xref:cassandra:developing/cql/security.adoc#create-user-statement[CREATE USER (Deprecated)] ::
5454
Deprecated. Creates a new user.
5555

56-
xref:reference/cql-commands/delete.adoc[DELETE] ::
56+
xref:cassandra:developing/cql/dml.adoc#delete_statement[DELETE] ::
5757
Removes data from one or more columns or removes the entire row
5858

59-
xref:reference/cql-commands/drop-aggregate.adoc[DROP AGGREGATE] ::
59+
xref:cassandra:developing/cql/functions.adoc#drop-aggregate-statement[DROP AGGREGATE] ::
6060
Deletes a user-defined aggregate from a keyspace.
6161

62-
xref:reference/cql-commands/drop-function.adoc[DROP FUNCTION] ::
62+
xref:cassandra:developing/cql/functions.adoc#drop-function-statement[DROP FUNCTION] ::
6363
Deletes a user-defined function (UDF) from a keyspace.
6464

65-
xref:reference/cql-commands/drop-index.adoc[DROP INDEX] ::
65+
xref:cassandra:reference/cql-commands/drop-index.adoc[DROP INDEX] ::
6666
Removes an index from a table.
6767

68-
xref:reference/cql-commands/drop-keyspace.adoc[DROP KEYSPACE] ::
68+
xref:cassandra:developing/cql/ddl.adoc#drop-keyspace-statement[DROP KEYSPACE] ::
6969
Removes the keyspace.
7070

71-
xref:reference/cql-commands/drop-materialized-view.adoc[DROP MATERIALIZED VIEW] ::
71+
xref:cassandra:developing/cql/mvs.adoc#drop-materialized-view-statement[DROP MATERIALIZED VIEW] ::
7272
Removes the named materialized view.
7373

74-
xref:reference/cql-commands/drop-role.adoc[DROP ROLE] ::
74+
xref:cassandra:developing/cql/security.adoc#drop-role-statement[DROP ROLE] ::
7575
Removes a role.
7676

77-
xref:reference/cql-commands/drop-table.adoc[DROP TABLE] ::
77+
xref:cassandra:reference/cql-commands/drop-table.adoc[DROP TABLE] ::
7878
Removes the table.
7979

80-
xref:reference/cql-commands/drop-type.adoc[DROP TYPE] ::
80+
xref:cassandra:developing/cql/types.adoc#udts[DROP TYPE] ::
8181
Drop a user-defined type.
8282

83-
xref:reference/cql-commands/drop-user.adoc[DROP USER (Deprecated)] ::
83+
xref:cassandra:developing/cql/security.adoc#drop-user-statement[DROP USER (Deprecated)] ::
8484
Removes a user.
8585

86-
xref:reference/cql-commands/grant.adoc[GRANT] ::
86+
xref:cassandra:developing/cql/security.adoc#grant-permission-statement[GRANT] ::
8787
Allow access to database resources.
8888

89-
xref:reference/cql-commands/insert.adoc[INSERT] ::
89+
xref:cassandra:developing/cql/dml.adoc#insert-statement[INSERT] ::
9090
Inserts an entire row or upserts data into existing rows.
9191

92-
xref:reference/cql-commands/list-permissions.adoc[LIST PERMISSIONS] ::
92+
xref:cassandra:developing/cql/security.adoc#list-permissions-statement[LIST PERMISSIONS] ::
9393
Lists permissions on resources.
9494

95-
xref:reference/cql-commands/list-roles.adoc[LIST ROLES] ::
95+
xref:cassandra:developing/cql/security.adoc#list-roles-statement[LIST ROLES] ::
9696
Lists roles and shows superuser and login status.
9797

98-
xref:reference/cql-commands/list-users.adoc[LIST USERS (Deprecated)] ::
98+
xref:cassandra:developing/cql/security.adoc#list-users-statement[LIST USERS (Deprecated)] ::
9999
Lists existing internal authentication users and their superuser status.
100100

101-
xref:reference/cql-commands/restrict.adoc[RESTRICT] ::
102-
Denies the permission on a resource, even if the role is directly granted or inherits permissions.
103-
104-
xref:reference/cql-commands/restrict-rows.adoc[RESTRICT ROWS] ::
105-
Configures the column used for row-level access control.
106-
107-
xref:reference/cql-commands/revoke.adoc[REVOKE] ::
101+
xref:cassandra:developing/cql/security.adoc#revoke-permission-statement[REVOKE] ::
108102
Removes privileges on database objects from roles.
109103

110-
xref:reference/cql-commands/select.adoc[SELECT] ::
104+
xref:cassandra:developing/cql/dml.adoc#select-statement[SELECT] ::
111105
Returns data from a table.
112106

113-
xref:reference/cql-commands/truncate.adoc[TRUNCATE] ::
107+
xref:cassandra:developing/cql/ddl.adoc#truncate-statement[TRUNCATE] ::
114108
Removes all data from a table.
115109

116-
xref:reference/cql-commands/unrestrict.adoc[UNRESTRICT] ::
117-
Removes a restriction from a role.
118-
119-
xref:reference/cql-commands/unrestrict-rows.adoc[UNRESTRICT ROWS] ::
120-
Removes the column definition for row-level access control.
121-
122-
xref:reference/cql-commands/update.adoc[UPDATE] ::
110+
xref:cassandra:developing/cql/dml.adoc#update-statement[UPDATE] ::
123111
Modifies one or more column values to a row in a table.
124112

125-
xref:reference/cql-commands/use.adoc[USE] ::
126-
Selects the keyspace for the current client session.
113+
xref:cassandra:developing/cql/ddl.adoc#use-statement[USE] ::
114+
Selects the keyspace for the current client session.

0 commit comments

Comments
 (0)