Skip to content

Commit

Permalink
typos and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timkoopmans committed Jan 17, 2024
1 parent 7057e3f commit 4c233e4
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 22 deletions.
12 changes: 6 additions & 6 deletions docs/get-started/data-modeling/schema-design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ and query performance.
.. code::
CREATE TABLE my_keyspace.products (
seller_id uuid,
product_id uuid,
product_name text,
price decimal,
description text
PRIMARY KEY (seller_id, price, product_id)
seller_id uuid,
product_id uuid,
product_name text,
price decimal,
description text
PRIMARY KEY (seller_id, price, product_id)
);
In this example, for the ``price``` column, we've chosen the decimal data type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ an IoT project connected to ScyllaDB Cloud.

ML Feature Store
-----------------------
Our `Feature Store sample application and tutorial <https://feature-store.scylladb.com/>`_ help you build a real-time feature store with ScyllaDB in Python.
Our `Feature Store sample application and tutorial <https://feature-store.scylladb.com/>`_
help you build a real-time feature store with ScyllaDB in Python.
2 changes: 1 addition & 1 deletion docs/get-started/query-data/delete-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ avoid accidental deletions. For example:
.. code::
DELETE FROM my_keyspace.users
WHERE user_id = 123e4567-e89b-12d3-a456-426655440000;
WHERE user_id = 123e4567-e89b-12d3-a456-426655440000;
Let's break down the components of this ``DELETE`` statement:

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/query-data/insert-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the column values. For example:
.. code::
INSERT INTO my_keyspace.users (user_id, first_name, last_name, age)
VALUES (123e4567-e89b-12d3-a456-426655440000, 'Polly', 'Partition', 77);
VALUES (123e4567-e89b-12d3-a456-426655440000, 'Polly', 'Partition', 77);
Let's break down the components of this ``INSERT INTO`` statement:
Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/query-data/read-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the ``WHERE`` clause. For example:
.. code::
SELECT * FROM my_keyspace.users
WHERE user_id = 123e4567-e89b-12d3-a456-426655440000;
WHERE user_id = 123e4567-e89b-12d3-a456-426655440000;
Let's break down the components of this ``SELECT`` statement:
Expand Down
24 changes: 14 additions & 10 deletions docs/get-started/query-data/schema.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ To create a keyspace, use the following syntax:

.. code::
CREATE KEYSPACE my_keyspace WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': 3};
CREATE KEYSPACE my_keyspace
WITH replication = {
'class': 'NetworkTopologyStrategy',
'replication_factor': 3
};
Let's break down the key concepts related to keyspace creation and replication in ScyllaDB.

Expand Down Expand Up @@ -56,10 +60,10 @@ keys. Here's how to create a table:
.. code::
CREATE TABLE my_keyspace.users (
user_id uuid PRIMARY KEY,
first_name text,
last_name text,
age int
user_id uuid PRIMARY KEY,
first_name text,
last_name text,
age int
);
Let's break down the components of this ``CREATE TABLE`` statement:
Expand Down Expand Up @@ -107,10 +111,10 @@ determine the internal sorting of data within a partition.
.. code::
CREATE TABLE my_keyspace.orders (
order_id uuid,
product_id uuid,
quantity int,
PRIMARY KEY (order_id, product_id)
order_id uuid,
product_id uuid,
quantity int,
PRIMARY KEY (order_id, product_id)
);
In this example, ``order_id`` is the partition key, and ``product_id`` is
Expand All @@ -125,4 +129,4 @@ Learn More
--------------

* See `Data Definition <https://opensource.docs.scylladb.com/stable/cql/ddl>`_
in the ScyllDB documentation to learn more about defining a schema in ScyllaDB.
in the ScyllaDB documentation to learn more about defining a schema in ScyllaDB.
2 changes: 1 addition & 1 deletion docs/get-started/query-data/update-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Update data using the ``UPDATE`` statement. For example:
.. code::
UPDATE my_keyspace.users SET age = 78
WHERE user_id = 123e4567-e89b-12d3-a456-426655440000;
WHERE user_id = 123e4567-e89b-12d3-a456-426655440000;
Let's break down the components of this ``UPDATE`` statement:

Expand Down
3 changes: 2 additions & 1 deletion docs/get-started/why-scylladb/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ Why ScyllaDB?
--------------
ScyllaDB is favored for its exceptional capability to manage high data volumes
and support rapid read/write operations. It is particularly effective in
environments demanding high throughput, low latency, and the ability to scale. The database is also known for its robustness and fault tolerance,
environments demanding high throughput, low latency, and the ability to scale.
The database is also known for its robustness and fault tolerance,
ensuring data integrity and availability.

0 comments on commit 4c233e4

Please sign in to comment.