@twin.org/entity-storage-connector-scylladb 0.0.1 → 0.0.2-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/index.cjs +4 -1
- package/dist/esm/index.mjs +4 -1
- package/dist/types/models/IScyllaDBConfig.d.ts +5 -0
- package/docs/changelog.md +40 -0
- package/docs/reference/interfaces/IScyllaDBConfig.md +14 -0
- package/docs/reference/interfaces/IScyllaDBTableConfig.md +18 -0
- package/docs/reference/interfaces/IScyllaDBViewConfig.md +18 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @twin.org/entity-storage-connector-scylladb
|
|
|
13
13
|
The tests developed are functional tests and need an instance of ScyllaDB up and running. To run ScyllaDB locally:
|
|
14
14
|
|
|
15
15
|
```shell
|
|
16
|
-
docker run -p
|
|
16
|
+
docker run -p 9500:9042 --name twin-entity-storage-scylladb --hostname scylla -d scylladb/scylla:5.4.9 --smp 1
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Afterwards you can run the tests as follows:
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -253,7 +253,10 @@ class AbstractScyllaDBConnector {
|
|
|
253
253
|
const client = new cassandraDriver.Client({
|
|
254
254
|
contactPoints: this._config.hosts,
|
|
255
255
|
localDataCenter: this._config.localDataCenter,
|
|
256
|
-
keyspace: skipKeySpace ? undefined : this._config.keyspace
|
|
256
|
+
keyspace: skipKeySpace ? undefined : this._config.keyspace,
|
|
257
|
+
protocolOptions: {
|
|
258
|
+
port: this._config.port
|
|
259
|
+
}
|
|
257
260
|
});
|
|
258
261
|
await client.connect();
|
|
259
262
|
return client;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -251,7 +251,10 @@ class AbstractScyllaDBConnector {
|
|
|
251
251
|
const client = new Client({
|
|
252
252
|
contactPoints: this._config.hosts,
|
|
253
253
|
localDataCenter: this._config.localDataCenter,
|
|
254
|
-
keyspace: skipKeySpace ? undefined : this._config.keyspace
|
|
254
|
+
keyspace: skipKeySpace ? undefined : this._config.keyspace,
|
|
255
|
+
protocolOptions: {
|
|
256
|
+
port: this._config.port
|
|
257
|
+
}
|
|
255
258
|
});
|
|
256
259
|
await client.connect();
|
|
257
260
|
return client;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @twin.org/entity-storage-connector-scylladb - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-scylladb-v0.0.2-next.1...entity-storage-connector-scylladb-v0.0.2-next.2) (2025-07-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* synchronised storage ([#44](https://github.com/twinfoundation/entity-storage/issues/44)) ([94e10e2](https://github.com/twinfoundation/entity-storage/commit/94e10e26d1feec801449dc04af7a9757ac7495ff))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/entity-storage-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
18
|
+
|
|
19
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/entity-storage/compare/entity-storage-connector-scylladb-v0.0.2-next.0...entity-storage-connector-scylladb-v0.0.2-next.1) (2025-07-17)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* add port config for scylladb ([ff17269](https://github.com/twinfoundation/entity-storage/commit/ff172693a652d8e15438ccbb0b4780035cb16168))
|
|
25
|
+
* add production release automation ([1eb4c8e](https://github.com/twinfoundation/entity-storage/commit/1eb4c8ee3eb099defdfc2d063ae44935276dcae8))
|
|
26
|
+
* update dependencies ([7ccc0c4](https://github.com/twinfoundation/entity-storage/commit/7ccc0c429125d073dc60b3de6cf101abc8cc6cba))
|
|
27
|
+
* use shared store mechanism ([#34](https://github.com/twinfoundation/entity-storage/issues/34)) ([68b6b71](https://github.com/twinfoundation/entity-storage/commit/68b6b71e7a96d7d016cd57bfff36775b56bf3f93))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* query params force coercion ([dd6aa87](https://github.com/twinfoundation/entity-storage/commit/dd6aa87efdfb60bab7d6756a86888863c45c51a7))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Dependencies
|
|
36
|
+
|
|
37
|
+
* The following workspace dependencies were updated
|
|
38
|
+
* dependencies
|
|
39
|
+
* @twin.org/entity-storage-models bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
40
|
+
* devDependencies
|
|
41
|
+
* @twin.org/entity-storage-connector-memory bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
42
|
+
|
|
3
43
|
## 0.0.1 (2025-07-04)
|
|
4
44
|
|
|
5
45
|
|
|
@@ -48,6 +48,24 @@ The keyspace to use.
|
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
51
|
+
### port?
|
|
52
|
+
|
|
53
|
+
> `optional` **port**: `number`
|
|
54
|
+
|
|
55
|
+
The port to connect to.
|
|
56
|
+
|
|
57
|
+
#### Default
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
9042
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Inherited from
|
|
64
|
+
|
|
65
|
+
[`IScyllaDBConfig`](IScyllaDBConfig.md).[`port`](IScyllaDBConfig.md#port)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
51
69
|
### tableName?
|
|
52
70
|
|
|
53
71
|
> `optional` **tableName**: `string`
|
|
@@ -44,6 +44,24 @@ The keyspace to use.
|
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
+
### port?
|
|
48
|
+
|
|
49
|
+
> `optional` **port**: `number`
|
|
50
|
+
|
|
51
|
+
The port to connect to.
|
|
52
|
+
|
|
53
|
+
#### Default
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
9042
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Inherited from
|
|
60
|
+
|
|
61
|
+
[`IScyllaDBTableConfig`](IScyllaDBTableConfig.md).[`port`](IScyllaDBTableConfig.md#port)
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
47
65
|
### tableName?
|
|
48
66
|
|
|
49
67
|
> `optional` **tableName**: `string`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/entity-storage-connector-scylladb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.2",
|
|
4
4
|
"description": "Entity Storage connector implementation using ScyllaDB",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "
|
|
18
|
-
"@twin.org/entity": "
|
|
19
|
-
"@twin.org/entity-storage-models": "
|
|
20
|
-
"@twin.org/logging-models": "
|
|
21
|
-
"@twin.org/nameof": "
|
|
17
|
+
"@twin.org/core": "next",
|
|
18
|
+
"@twin.org/entity": "next",
|
|
19
|
+
"@twin.org/entity-storage-models": "0.0.2-next.2",
|
|
20
|
+
"@twin.org/logging-models": "next",
|
|
21
|
+
"@twin.org/nameof": "next",
|
|
22
22
|
"cassandra-driver": "4.8.0"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/cjs/index.cjs",
|