Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 42 additions & 2 deletions docs/config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,48 @@
showSection = true

[[preview]]
name = "Reference"
name = "YSQL"
weight = 12
identifier = "api-ysql"
url = "/preview/api/ysql/"
[preview.params]
showSection = true

[[preview]]
name = "YCQL"
weight = 13
identifier = "api-cassandra"
url = "/preview/api/ycql/"
[preview.params]
showSection = true

[[preview]]
name = "Statements"
weight = 14
parent = "api-cassandra"
identifier = "ycql-statements"
[preview.params]
showSection = true

[[preview]]
name = "Data Types"
weight = 15
parent = "api-cassandra"
identifier = "ycql-datatypes"
[preview.params]
showSection = true

[[preview]]
name = "Functions & Expressions"
weight = 16
parent = "api-cassandra"
identifier = "ycql-expressions"
[preview.params]
showSection = true

[[preview]]
name = "Reference"
weight = 20
identifier = "reference"
[preview.params]
showSection = true
Expand All @@ -505,7 +545,7 @@

[[preview]]
name = "Contribute"
weight = 13
weight = 30
identifier = "contribute"
url = "/preview/contribute/"
[preview.params]
Expand Down
7 changes: 0 additions & 7 deletions docs/content/preview/api/ycql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ description: YCQL is a semi-relational API that is best fit for internet-scale O
summary: Reference for the YCQL API
image: /images/section_icons/api/ycql.png
headcontent: Cassandra-compatible API
menu:
preview:
parent: api
identifier: api-cassandra
weight: 10
params:
classes: separator
aliases:
- /preview/api/ycql/
showRightNav: true
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summary: Execute multiple DML in 1 request
description: Use batch to update multiple rows in 1 request.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 19991
type: docs
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_alter_keyspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: ALTER KEYSPACE
description: Use the ALTER KEYSPACE statement to change the properties of an existing keyspace.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1200
aliases:
- /preview/api/cassandra/ddl_alter_keyspace
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_alter_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: ALTER ROLE
description: Use the ALTER ROLE statement to change the properties of an existing role.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1210
aliases:
- /preview/api/cassandra/ddl_alter_role
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_alter_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: ALTER TABLE
description: Use the ALTER TABLE statement to change the schema or definition of an existing table.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1220
aliases:
- /preview/api/cassandra/ddl_alter_table
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_create_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summary: Create a new index on a table
description: Use the CREATE INDEX statement to create a new index on a table.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1225
aliases:
- /preview/api/ycql/ddl_create_index
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_create_keyspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: CREATE KEYSPACE
description: Use the CREATE KEYSPACE statement to create a keyspace that functions as a grouping mechanism for database objects, such as tables or types.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1230
aliases:
- /preview/api/cassandra/ddl_create_keyspace
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_create_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: CREATE ROLE
description: Use the `CREATE ROLE` statement to create a new role that is used to authenticate into YCQL and as a group of permissions used to restrict operations on the database objects.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1235
aliases:
- /preview/api/cassandra/ddl_create_role
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_create_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: CREATE TABLE
description: Use the CREATE TABLE statement to create a new table in a keyspace.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1240
aliases:
- /preview/api/ycql/ddl_create_table
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_create_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: CREATE TYPE
description: Use the CREATE TYPE statement to create a new user-defined data type in a keyspace.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1250
aliases:
- /preview/api/cassandra/ddl_create_type
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_drop_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DROP INDEX
description: Use the DROP INDEX statement to remove an index and all of its data from the database.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1255
aliases:
- /preview/api/cassandra/ddl_drop_index
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_drop_keyspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DROP KEYSPACE
description: Use the DROP KEYSPACE statement to remove a keyspace from the system.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1260
aliases:
- /preview/api/cassandra/ddl_drop_keyspace
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_drop_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DROP ROLE
description: Use the DROP ROLE statement to delete an existing role.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1265
aliases:
- /preview/api/cassandra/ddl_drop_role
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_drop_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DROP TABLE
description: Use the DROP TABLE statement to remove a table and all of its data from the database.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1270
aliases:
- /preview/api/cassandra/ddl_drop_table
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_drop_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DROP TYPE
description: Use the DROP TYPE statement to remove an existing user-defined data type.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1280
aliases:
- /preview/api/cassandra/ddl_drop_type
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_grant_permission.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: GRANT PERMISSION
description: Use the GRANT PERMISSION statement to grant a permission (or all the available permissions) to a role.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1281
aliases:
- /preview/api/cassandra/ddl_grant_permission
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_grant_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: GRANT ROLE
description: Use the GRANT ROLE statement to grant a role's permissions and SUPERUSER status to another role.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1282
aliases:
- /preview/api/cassandra/ddl_grant_role
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_revoke_permission.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: REVOKE PERMISSION
description: Use the REVOKE PERMISSION statement to revoke a permission (or all the granted permissions) from a role.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1283
aliases:
- /preview/api/cassandra/ddl_revoke_permission
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_revoke_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: REVOKE ROLE
description: Use the `REVOKE ROLE` statement to revoke a role (which represents a group of permissions and the SUPERUSER status) from another role.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1284
aliases:
- /preview/api/cassandra/ddl_revoke_role
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/ddl_use.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: USE
description: Use the USE statement to specify a default keyspace for the current client session.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1290
aliases:
- /preview/api/cassandra/ddl_use
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/dml_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DELETE
description: Use the DELETE statement to remove rows from a specified table that meet a given condition.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1330
aliases:
- /preview/api/cassandra/ddl_delete
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/dml_insert.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: INSERT
description: Use the INSERT statement to add a row to a specified table.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1300
aliases:
- /preview/api/cassandra/dml_insert
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/dml_select.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: SELECT
description: Use the SELECT statement to retrieve (part of) rows of specified columns that meet a given condition from a table.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1310
aliases:
- /preview/api/cassandra/dml_select
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/dml_transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: TRANSACTION
description: Use the TRANSACTION statement block to make changes to multiple rows in one or more tables in a distributed ACID transaction.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1330
aliases:
- /preview/api/cassandra/dml_transaction
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/dml_truncate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: TRUNCATE
description: Use the TRUNCATE statement to remove all rows from a specified table.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1330
aliases:
- /preview/api/cassandra/dml_truncate
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/dml_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: UPDATE
description: Use the UPDATE statement to update one or more column values for a row in table.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1320
aliases:
- /preview/api/cassandra/dml_update/
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/explain.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: EXPLAIN
description: Use the EXPLAIN statement to show the execution plan for a YCQL statement.
menu:
preview:
parent: api-cassandra
parent: ycql-statements
weight: 1320
aliases:
- /preview/api/ycql/explain/
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/expr_fcall.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: Function call
description: Use a function call expression to apply the specified function to given arguments between parentheses and return the result of the computation.
menu:
preview:
parent: api-cassandra
parent: ycql-expressions
weight: 1350
aliases:
- /preview/api/cassandra/expr_fcall
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/expr_ocall.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: Operators
description: Combine multiple expressions using YCQL operators supported in YugabyteDB.
menu:
preview:
parent: api-cassandra
parent: ycql-expressions
weight: 1360
aliases:
- /preview/api/cassandra/expr_ocall
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/expr_simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: Simple expressions
description: A simple expression can be a column, constant, or NULL.
menu:
preview:
parent: api-cassandra
parent: ycql-expressions
weight: 1331
aliases:
- /preview/api/cassandra/expr_simple
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/expr_subscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: Subscripted expressions
description: Use subscripted expressions to access elements in a multi-element value, such as a map collection by using the [] operator.
menu:
preview:
parent: api-cassandra
parent: ycql-expressions
weight: 1340
aliases:
- /preview/api/cassandra/expr_subscript
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/function_datetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: Date and time
description: Use date and time functions to work on date and time data types.
menu:
preview:
parent: api-cassandra
parent: ycql-expressions
weight: 1560
aliases:
- /preview/api/cassandra/function_datetime
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/type_blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: BLOB
description: Use the BLOB data type to represent arbitrary binary data of variable length.
menu:
preview:
parent: api-cassandra
parent: ycql-datatypes
weight: 1370
aliases:
- /preview/api/cassandra/type_blob
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/type_bool.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: BOOLEAN
description: Use the `BOOLEAN` data type to specify values of either "true" or "false".
menu:
preview:
parent: api-cassandra
parent: ycql-datatypes
weight: 1380
aliases:
- /preview/api/cassandra/type_bool
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/type_collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: Collection
description: Use collection data types to specify columns for data objects that can contain more than one value.
menu:
preview:
parent: api-cassandra
parent: ycql-datatypes
weight: 1390
aliases:
- /preview/api/cassandra/type_collection
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/type_datetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: DATE, TIME, and TIMESTAMP
description: Use the date and time data types (DATE, TIME, and TIMESTAMP) to specify dates and time.
menu:
preview:
parent: api-cassandra
parent: ycql-datatypes
weight: 1450
aliases:
- /preview/api/cassandra/type_datetime
Expand Down
2 changes: 1 addition & 1 deletion docs/content/preview/api/ycql/type_frozen.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linkTitle: FROZEN
description: Use the FROZEN data type to specify columns of binary strings that result from serializing collections, tuples, or user-defined types.
menu:
preview:
parent: api-cassandra
parent: ycql-datatypes
weight: 1401
aliases:
- /preview/api/cassandra/type_frozen
Expand Down
Loading