Skip to content

Commit 7b14216

Browse files
committed
New folder guides/databases
1 parent ca4d752 commit 7b14216

File tree

28 files changed

+161
-165
lines changed

28 files changed

+161
-165
lines changed

about/features.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ Following is an index of the features currently covered by CAP, with status and
197197

198198
| | CDS/deploy | Node.js | Java |
199199
|-----------------------------------------------------------------|:----------:|:-------:|:----:|
200-
| [SAP HANA](../guides/databases) | <X/> | <X/> | <X/> |
201-
| [SAP HANA Cloud](../guides/databases-hana) | <X/> | <X/> | <X/> |
202-
| [PostgreSQL](../guides/databases-postgres) | <X/> | <X/> | <X/> |
203-
| [SQLite](../guides/databases-sqlite) <sup>1</sup> | <X/> | <X/> | <X/> |
200+
| [SAP HANA](../guides/databases/index) | <X/> | <X/> | <X/> |
201+
| [SAP HANA Cloud](../guides/databases/hana) | <X/> | <X/> | <X/> |
202+
| [PostgreSQL](../guides/databases/postgres) | <X/> | <X/> | <X/> |
203+
| [SQLite](../guides/databases/sqlite) <sup>1</sup> | <X/> | <X/> | <X/> |
204204
| [H2](../java/cqn-services/persistence-services#h2) <sup>1</sup> | <X/> | <Na/> | <X/> |
205-
| [MongoDB](../guides/databases) out of the box | <Na/> | <Na/> | <D/> |
205+
| [MongoDB](../guides/databases/index) out of the box | <Na/> | <Na/> | <D/> |
206206
| Pluggable drivers architecture | <D/> | <D/> | <X/> |
207207
| Out-of-the-box support for other databases? | <C/> | <C/> | <C/> |
208208

advanced/fiori.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ SELECT.from(Books.drafts) //returns all drafts of the Books entity
525525

526526
In addition to adding [restrictions on services, entities, and actions/functions](/guides/security/authorization#restrictions), there are use cases where you only want to hide certain parts of the UI for specific users. This is possible by using the respective UI annotations like `@UI.Hidden` or `@UI.CreateHidden` in conjunction with `$edmJson` pointing to a singleton.
527527

528-
First, you define the [singleton](../advanced/odata#singletons) in your service and annotate it with [`@cds.persistence.skip`](../guides/databases#cds-persistence-skip) so that no database artefact is created:
528+
First, you define the [singleton](../advanced/odata#singletons) in your service and annotate it with [`@cds.persistence.skip`](../guides/databases/index#cds-persistence-skip) so that no database artefact is created:
529529

530530
```cds
531531
@odata.singleton @cds.persistence.skip
@@ -861,4 +861,3 @@ extend AdminService.Genres with @(
861861
> `<entity name in service>Hierarchy`
862862
863863
<div id="reserved-words" />
864-

cds/annotations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ uacp: Used as link target from Help Portal at https://help.sap.com/products/BTP/
6363

6464
| Annotation | Description |
6565
|---------------------------|------------------------------------------------------------------------|
66-
| `@cds.persistence.exists` | see [Generating DDL Files](../guides/databases#cds-persistence-exists) |
67-
| `@cds.persistence.table` | see [Generating DDL Files](../guides/databases#cds-persistence-table) |
68-
| `@cds.persistence.skip` | see [Generating DDL Files](../guides/databases#cds-persistence-skip) |
66+
| `@cds.persistence.exists` | see [Generating DDL Files](../guides/databases/index#cds-persistence-exists) |
67+
| `@cds.persistence.table` | see [Generating DDL Files](../guides/databases/index#cds-persistence-table) |
68+
| `@cds.persistence.skip` | see [Generating DDL Files](../guides/databases/index#cds-persistence-skip) |
6969
| `@cds.persistence.mock` | `false` excludes this entity from automatic mocking |
7070
| `@cds.on.insert` | see [Providing Services](../guides/providing-services) |
7171
| `@cds.on.update` | see [Providing Services](../guides/providing-services) |
72-
| `@sql.prepend` | see [Generating DDL Files](../guides/databases#sql-prepend-append) |
73-
| `@sql.append` | see [Generating DDL Files](../guides/databases#sql-prepend-append) |
72+
| `@sql.prepend` | see [Generating DDL Files](../guides/databases/index#sql-prepend-append) |
73+
| `@sql.append` | see [Generating DDL Files](../guides/databases/index#sql-prepend-append) |
7474

7575
## OData
7676

cds/cdl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ Result result = service.run(Select.from("UsingView"), params);
858858

859859
### Runtime Views { #runtimeviews }
860860

861-
To add or update CDS views without redeploying the database schema, annotate them with [@cds.persistence.skip](../guides/databases#cds-persistence-skip). This advises the CDS compiler to skip generating database views for these CDS views. Instead, CAP resolves them *at runtime* on each request.
861+
To add or update CDS views without redeploying the database schema, annotate them with [@cds.persistence.skip](../guides/databases/index#cds-persistence-skip). This advises the CDS compiler to skip generating database views for these CDS views. Instead, CAP resolves them *at runtime* on each request.
862862

863863
Runtime views must be simple [projections](#as-projection-on), not using *aggregations*, *join*, *union* or *subqueries* in the *from* clause, but may have a *where* condition if they are only used to read.
864864

@@ -948,7 +948,7 @@ This example is equivalent to the [unmanaged example above](#unmanaged-associati
948948
key element `address_ID` being added automatically upon activation to a SQL database.
949949
The names of the automatically added foreign key elements cannot be changed.
950950

951-
> Note: For adding foreign key constraints on database level, see [Database Constraints.](../guides/databases#database-constraints).
951+
> Note: For adding foreign key constraints on database level, see [Database Constraints.](../guides/databases/index#database-constraints).
952952
953953
If the target has a single primary key, a default value can be provided.
954954
This default applies to the generated foreign key element `address_ID`:
@@ -1429,7 +1429,7 @@ Propagation of annotations can be stopped via value `null`, for example, `@anno:
14291429
:::
14301430

14311431

1432-
### Expressions as Annotation Values {#expressions-as-annotation-values}
1432+
### Expressions as Annotation Values
14331433

14341434
In order to use an expression as an annotation value, it must be enclosed in parentheses:
14351435
```cds

cds/common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ EU;European Union;European Union
421421
```
422422
:::
423423

424-
[Learn more about the database aspects of **Providing Initial Data**.](../guides/databases#providing-initial-data){ .learn-more}
424+
[Learn more about the database aspects of **Providing Initial Data**.](../guides/databases/index#providing-initial-data){ .learn-more}
425425

426426

427427
### Add Translated Texts

cds/compiler/hdbcds-to-hdbtable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If the table doesn't contain much data, this process won't significantly impact
6969

7070
## Annotations
7171

72-
Annotations [`@sql.append/prepend`](../../guides/databases#sql-prepend-append) are used to generate native SQL clauses to the _.hdbtable_ files, or add native SAP HANA CDS clauses to the _.hdbcds_ files.
72+
Annotations [`@sql.append/prepend`](../../guides/databases/index#sql-prepend-append) are used to generate native SQL clauses to the _.hdbtable_ files, or add native SAP HANA CDS clauses to the _.hdbcds_ files.
7373

7474
If you have used these annotations in your model, a simple switchover from `hdbcds` to `hdbtable` is unlikely as such an annotation written for `hdbcds` in general is not valid for `hdbtable`. You'll have to adapt your model before the migration.
7575

cds/compiler/v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ Select.from("bookshop.Books", b -> b.matching(id).to("texts"));
705705

706706
#### CSV Files
707707

708-
CAP Java allows to [provide initial data](../../guides/databases#providing-initial-data) to your application using CSV files. The name of the CSV file should adhere to the pattern `<namespace>-<entity>.csv` (`<qualified-entity-name>.csv`). Renaming the CSV file is recommended.
708+
CAP Java allows to [provide initial data](../../guides/databases/index#providing-initial-data) to your application using CSV files. The name of the CSV file should adhere to the pattern `<namespace>-<entity>.csv` (`<qualified-entity-name>.csv`). Renaming the CSV file is recommended.
709709

710710
```sh
711711
mv bookshop-Books_texts.csv bookshop-Books.texts.csv

get-started/in-a-nutshell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ c.s.c.s.impl.persistence.CsvDataLoader : Filling sap.capire.bookshop.Books fro
423423

424424
</span>
425425

426-
[Learn more about **Using Databases**.](../guides/databases){.learn-more}
426+
[Learn more about **Using Databases**.](../guides/databases/index){.learn-more}
427427

428428

429429
### Querying via OData
@@ -491,7 +491,7 @@ cds deploy --to hana
491491
```
492492
:::
493493

494-
[Learn more about deploying to SAP HANA.](../guides/databases){.learn-more .impl .node}
494+
[Learn more about deploying to SAP HANA.](../guides/databases/index){.learn-more .impl .node}
495495

496496

497497

@@ -831,7 +831,7 @@ With this getting started guide we introduced many of the basics of CAP, such as
831831
- [Domain Modeling](../guides/domain-modeling)
832832
- [Providing Services](../guides/providing-services)
833833
- [Consuming Services](../guides/using-services)
834-
- [Using Databases](../guides/databases)
834+
- [Using Databases](../guides/databases/index)
835835
- [Serving UIs](../advanced/fiori)
836836

837837
Visit the [***Cookbook***](../guides/) for deep dive guides on these topics and more. Also see the reference documentations for [***CDS***](../cds/), as well as [***Node.js***](../node.js/) and [***Java***](../java/) Service SDKs and runtimes.

get-started/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ After you have successfully deployed these changes to all affected HDI (tenant)
510510
| | Explanation |
511511
| --- | ---- |
512512
| _Root Cause_ | Your configuration isn't properly set. |
513-
| _Solution_ | Configure your project as described in [Using Databases](../guides/databases).
513+
| _Solution_ | Configure your project as described in [Using Databases](../guides/databases/index).
514514

515515

516516
#### Deployment fails — _Connection failed (RTE:[89008] Socket closed by peer_ {#connection-failed-89008}

guides/data-privacy/annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Use this annotation to identify data subject's unique key, or a reference to it.
144144
- Each `@PersonalData` entity needs to identify a `DataSubjectID` element.
145145
- For entities with `DataSubject` semantics, this is typically the primary key.
146146
- For entities with `DataSubjectDetails` or `Other` semantics, this is usually an association to the data subject.
147-
- Fields marked as `DataSubjectID` should use [`not null`](../databases#not-null) to guarantee a value is present at all times.
147+
- Fields marked as `DataSubjectID` should use [`not null`](../databases/index#not-null) to guarantee a value is present at all times.
148148

149149
Hence, we annotate our model as follows:
150150

0 commit comments

Comments
 (0)