Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs markdown #226

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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
12 changes: 3 additions & 9 deletions docs/src/psrdatabasesqlite/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ CREATE TABLE Plant(

### Vector Attributes

- In case of a vector attribute, a table should be created with its name indicating the name of the Collection and the name of a group of the attribute, separated by `_vector_`, as presented below

<p style="text-align: center;"> COLLECTION_vector_GROUP_OF_ATTRIBUTES</p>
- In case of a vector attribute, a table should be created with its name indicating the name of the Collection and the name of a group of the attribute, separated by `_vector_`, such as `COLLECTION_vector_GROUP_OF_ATTRIBUTES`.

- The table must contain a Column named `id` and another named `vector_index`.
- There must be a Column named after the attributes names, which will store the value of the attribute for the specified element `id` and index `vector_index`.
Expand Down Expand Up @@ -135,9 +133,7 @@ CREATE TABLE HydroPlant_vector_GaugingStation(
### Time Series Files

- All Time Series files for the elements from a Collection should be stored in a Table
- The Table name should be the same as the name of the Collection followed by `_time_series_files`, as presented below

<p style="text-align: center"> COLLECTION_vector_ATTRIBUTE</p>
- The Table name should be the same as the name of the Collection followed by `_time_series_files`, such as `COLLECTION_vector_ATTRIBUTE`.

- Each Column of the table should be named after the name of the attribute.
- Each Column should store the path to the file containing the time series data.
Expand All @@ -152,9 +148,7 @@ CREATE TABLE Plant_time_series_files (
```

### Time Series
- Time Series stored in the database should be stored in a table with the name of the Collection followed by `_time_series_` and the name of the attribute group, as presented below.

<p style="text-align: center"> COLLECTION_time_series_GROUP_OF_ATTRIBUTES</p>
- Time Series stored in the database should be stored in a table with the name of the Collection followed by `_time_series_` and the name of the attribute group, such a `COLLECTION_time_series_GROUP_OF_ATTRIBUTES`.

Notice that it is quite similar to the vector attributes, but without the `vector_index` column.
Instead, a mandatory column named `date_time` should be created to store the date of the time series data.
Expand Down
Loading