Elffuss BraidHub

kikocis/EDC public

a74f4e2d1913 · 1.1 KiBRenderedRawPermalink
1# SQL Contract Definition
2
3Provides SQL persistence for contract definitions.
4
5## Prerequisites
6
7Please apply this [schema](docs/schema.sql) to your SQL database.
8
9## Entity Diagram
10
11![ER Diagram](docs/er.png)
12
13## Configuration
14
15| Key | Description | Mandatory |
16|:---------------------------------------|:----------------------------------|-----------|
17| edc.datasource.contractdefinition.name | Datasource used by this extension | X |
18
19## Create a flexible query API to accommodate `QuerySpec`
20
21_For the first version, only the `limit` and `offset` arguments from the `QuerySpec` will be used._
22
23For subsequent versions it is recommended to re-use the `Clause` interface and its implementors, that were originally
24implemented for CosmosDB, and create an equivalent set of clauses for SQL. Thus, there would be a `Limit-`, `Offset-`
25, `Order-` and `WhereClause` for SQL.
26
27That way, dialect-dependent variants can be implemented should the need arise, because the actual SQL statement is
28encoded in those clauses, offering a fluent Java API.