Skip to content

Commit

Permalink
Add review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daneshk committed Jun 1, 2023
1 parent 27a7f1c commit 6990cb0
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions examples/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4264,9 +4264,9 @@
]
},
{
"title": "Reading data",
"title": "Query data",
"column": 0,
"category": "Persistence",
"category": "Bal persist",
"samples": [
{
"name": "Get all",
Expand Down Expand Up @@ -4296,7 +4296,7 @@
"isLearnByExample": false
},
{
"name": "Filtering and sorting",
"name": "Filter and sort",
"url": "persist-filtering",
"verifyBuild": false,
"verifyOutput": false,
Expand All @@ -4316,9 +4316,9 @@
]
},
{
"title": "Writing data",
"title": "Write data",
"column": 1,
"category": "Persistence",
"category": "Bal persist",
"samples": [
{
"name": "Create/Create many",
Expand Down
2 changes: 1 addition & 1 deletion examples/persist-create/persist_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, you can persist record/records to the datastore with the `post` resource method.
Using the generated client API, you can persist record/records to the data store with the `post` resource method.

::: code persist_create.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/persist-create/persist_create.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of post resource method in the generated persistence client to persist record/records to the data store
keywords: ballerina, ballerina by example, bbe, persistence, datastore, post, entity
keywords: ballerina, ballerina by example, bbe, persistence, data store, post, entity
2 changes: 1 addition & 1 deletion examples/persist-delete/persist_create.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of delete resource method in the generated persistence client to delete record from the data store.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, delete, entity
keywords: ballerina, ballerina by example, bbe, persistence, data store, delete, entity
2 changes: 1 addition & 1 deletion examples/persist-delete/persist_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, you can delete records from the datastore with the `delete` resource method.
Using the generated client API, you can delete records from the data store with the `delete` resource method.

::: code persist_delete.bal :::

Expand Down
4 changes: 2 additions & 2 deletions examples/persist-filtering/persist_filtering.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Persist read - Filtering and sorting
# Persist read - Filter and sort

The bal persist feature provide support to manage data persistence in a Ballerina package. It starts with defining the application's data model. Once model is defined, the client API is generated with resources based on the model. The generated
API can be used to query and manipulate the persistent data in the application.
Expand All @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, we can retrieve all records from the datastore. The `get` resource method returns a stream of records. We can iterate through the stream and print the records.
Using the generated client API, we can retrieve all records from the data store. The `get` resource method returns a stream of records. We can iterate through the stream and print the records.

::: code persist_filtering.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/persist-filtering/persist_filtering.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of query expressions with get resource method in generated persistence client.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, get, entity, filtering, query
keywords: ballerina, ballerina by example, bbe, persistence, data store, get, entity, filtering, query
2 changes: 1 addition & 1 deletion examples/persist-get-all/persist_get_all.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of get resource method in generated persistence client.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, get, entity
keywords: ballerina, ballerina by example, bbe, persistence, data store, get, entity
2 changes: 1 addition & 1 deletion examples/persist-get-by-key/persist_get_by_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, you can retrieve the record by key from the datastore. The `get by key` resource method returns a record or error if no records are found for the given key.
Using the generated client API, you can retrieve the record by key from the data store. The `get by key` resource method returns a record or error if no records are found for the given key.

::: code persist_get_by_key.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/persist-get-by-key/persist_get_by_key.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of get by key resource method in generated persistence client.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, get by key, entity
keywords: ballerina, ballerina by example, bbe, persistence, data store, get by key, entity
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, you can retrieve the record with relation fields from the datastore with both `get` and `get by key` resource methods.
Using the generated client API, you can retrieve the record with relation fields from the data store with both `get` and `get by key` resource methods.

::: code persist_relation_queries.bal :::

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of the get/get by key resource method in generated persistence client to retrieve relation fields of an entity from the datastore.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, get by key, get, select, entity, relations
description: This BBE demonstrates the usage of the get/get by key resource method in generated persistence client to retrieve relation fields of an entity from the data store.
keywords: ballerina, ballerina by example, bbe, persistence, data store, get by key, get, select, entity, relations
2 changes: 1 addition & 1 deletion examples/persist-select-fields/persist_select_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, you can retrieve the record with selected fields from the datastore with both `get` and `get by key` resource methods.
Using the generated client API, you can retrieve the record with selected fields from the data store with both `get` and `get by key` resource methods.

::: code persist_select_fields.bal :::

Expand Down
4 changes: 2 additions & 2 deletions examples/persist-select-fields/persist_select_fields.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of the get/get by key resource method in generated persistence client to retrieve selected fields of an entity from the datastore.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, get by key, get, select, entity
description: This BBE demonstrates the usage of the get/get by key resource method in generated persistence client to retrieve selected fields of an entity from the data store.
keywords: ballerina, ballerina by example, bbe, persistence, data store, get by key, get, select, entity
2 changes: 1 addition & 1 deletion examples/persist-update/persist_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API.

#### Use the generated client API

Using the generated client API, you can update the record in the datastore with the `put` resource method.
Using the generated client API, you can update the record in the data store with the `put` resource method.

::: code persist_update.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/persist-update/persist_update.metatags
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
description: This BBE demonstrates the usage of put resource method in generated persistence client to update the record in the data store.
keywords: ballerina, ballerina by example, bbe, persistence, datastore, put, select, entity
keywords: ballerina, ballerina by example, bbe, persistence, data store, put, select, entity

0 comments on commit 6990cb0

Please sign in to comment.