@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 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 9042:9042 --name twin-entity-storage-scylla --hostname scylla -d scylladb/scylla:5.4.9 --smp 1
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:
@@ -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;
@@ -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;
@@ -14,4 +14,9 @@ export interface IScyllaDBConfig {
14
14
  * The keyspace to use.
15
15
  */
16
16
  keyspace: string;
17
+ /**
18
+ * The port to connect to.
19
+ * @default 9042
20
+ */
21
+ port?: number;
17
22
  }
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
 
@@ -29,3 +29,17 @@ The local data center.
29
29
  > **keyspace**: `string`
30
30
 
31
31
  The keyspace to use.
32
+
33
+ ***
34
+
35
+ ### port?
36
+
37
+ > `optional` **port**: `number`
38
+
39
+ The port to connect to.
40
+
41
+ #### Default
42
+
43
+ ```ts
44
+ 9042
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.1",
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": "^0.0.1",
18
- "@twin.org/entity": "^0.0.1",
19
- "@twin.org/entity-storage-models": "^0.0.1",
20
- "@twin.org/logging-models": "^0.0.1",
21
- "@twin.org/nameof": "^0.0.1",
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",