@twin.org/entity-storage-connector-scylladb 0.0.1-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.
@@ -0,0 +1,61 @@
1
+ # Interface: IScyllaDBTableConfig
2
+
3
+ Definition of MySQL DB configuration.
4
+
5
+ ## Extends
6
+
7
+ - `IScyllaDBConfig`
8
+
9
+ ## Extended by
10
+
11
+ - [`IScyllaDBViewConfig`](IScyllaDBViewConfig.md)
12
+
13
+ ## Properties
14
+
15
+ ### hosts
16
+
17
+ > **hosts**: `string`[]
18
+
19
+ The host to contact to.
20
+
21
+ #### Inherited from
22
+
23
+ `IScyllaDBConfig.hosts`
24
+
25
+ ***
26
+
27
+ ### localDataCenter
28
+
29
+ > **localDataCenter**: `string`
30
+
31
+ The local data center.
32
+
33
+ #### Inherited from
34
+
35
+ `IScyllaDBConfig.localDataCenter`
36
+
37
+ ***
38
+
39
+ ### keyspace
40
+
41
+ > **keyspace**: `string`
42
+
43
+ The keyspace to use.
44
+
45
+ #### Inherited from
46
+
47
+ `IScyllaDBConfig.keyspace`
48
+
49
+ ***
50
+
51
+ ### tableName?
52
+
53
+ > `optional` **tableName**: `string`
54
+
55
+ The name of the table for the storage.
56
+
57
+ #### Default
58
+
59
+ ```ts
60
+ To the camel case of the entity name.
61
+ ```
@@ -0,0 +1,75 @@
1
+ # Interface: IScyllaDBViewConfig
2
+
3
+ Definition of MySQL DB configuration.
4
+
5
+ ## Extends
6
+
7
+ - [`IScyllaDBTableConfig`](IScyllaDBTableConfig.md)
8
+
9
+ ## Properties
10
+
11
+ ### hosts
12
+
13
+ > **hosts**: `string`[]
14
+
15
+ The host to contact to.
16
+
17
+ #### Inherited from
18
+
19
+ [`IScyllaDBTableConfig`](IScyllaDBTableConfig.md).[`hosts`](IScyllaDBTableConfig.md#hosts)
20
+
21
+ ***
22
+
23
+ ### localDataCenter
24
+
25
+ > **localDataCenter**: `string`
26
+
27
+ The local data center.
28
+
29
+ #### Inherited from
30
+
31
+ [`IScyllaDBTableConfig`](IScyllaDBTableConfig.md).[`localDataCenter`](IScyllaDBTableConfig.md#localdatacenter)
32
+
33
+ ***
34
+
35
+ ### keyspace
36
+
37
+ > **keyspace**: `string`
38
+
39
+ The keyspace to use.
40
+
41
+ #### Inherited from
42
+
43
+ [`IScyllaDBTableConfig`](IScyllaDBTableConfig.md).[`keyspace`](IScyllaDBTableConfig.md#keyspace)
44
+
45
+ ***
46
+
47
+ ### tableName?
48
+
49
+ > `optional` **tableName**: `string`
50
+
51
+ The name of the table for the storage.
52
+
53
+ #### Default
54
+
55
+ ```ts
56
+ To the camel case of the entity name.
57
+ ```
58
+
59
+ #### Inherited from
60
+
61
+ [`IScyllaDBTableConfig`](IScyllaDBTableConfig.md).[`tableName`](IScyllaDBTableConfig.md#tablename)
62
+
63
+ ***
64
+
65
+ ### viewName?
66
+
67
+ > `optional` **viewName**: `string`
68
+
69
+ The name of view.
70
+
71
+ #### Default
72
+
73
+ ```ts
74
+ To the camel case of the entity name with View appended.
75
+ ```
@@ -0,0 +1,28 @@
1
+ {
2
+ "info": {
3
+ "scyllaDBTableConnector": {
4
+ "tableCreating": "Creating table \"{table}\"",
5
+ "tableCreated": "Created table \"{table}\"",
6
+ "tableExists": "Skipping create table \"{table}\" as it already exists",
7
+ "typeCreated": "Created type \"{typeName}\"",
8
+ "sql": "SQL: \"{sql}\""
9
+ },
10
+ "scyllaDBViewConnector": {
11
+ "viewCreating": "Creating view \"{view}\"",
12
+ "viewCreated": "Created view \"{view}\"",
13
+ "viewExists": "Skipping create view \"{view}\" as it already exists",
14
+ "typeCreated": "Created type \"{typeName}\"",
15
+ "sql": "SQL: \"{sql}\""
16
+ }
17
+ },
18
+ "error": {
19
+ "scyllaDBTableConnector": {
20
+ "tableCreateFailed": "Creating table \"{table}\" failed",
21
+ "getFailed": "Getting item with \"{id}\" failed",
22
+ "dropTableFailed": " \"{table}\" cannot be dropped",
23
+ "truncateTableFailed": " \"{table}\" cannot be dropped",
24
+ "removeFailed": "Removing item with \"{id}\" failed",
25
+ "findFailed": "Error while querying data on \"{table}\""
26
+ }
27
+ }
28
+ }
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@twin.org/entity-storage-connector-scylladb",
3
+ "version": "0.0.1-next.2",
4
+ "description": "Entity Storage connector implementation using ScyllaDB",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/twinfoundation/entity-storage.git",
8
+ "directory": "packages/entity-storage-connector-scylladb"
9
+ },
10
+ "author": "jose.cantera@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=20.0.0"
15
+ },
16
+ "scripts": {
17
+ "clean": "rimraf dist coverage docs/reference",
18
+ "build": "tspc",
19
+ "test": "vitest --run --config ./vitest.config.ts --no-cache",
20
+ "coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
21
+ "bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
22
+ "bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
23
+ "bundle": "npm run bundle:esm && npm run bundle:cjs",
24
+ "docs:clean": "rimraf docs/reference",
25
+ "docs:generate": "typedoc",
26
+ "docs": "npm run docs:clean && npm run docs:generate",
27
+ "dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs"
28
+ },
29
+ "dependencies": {
30
+ "@twin.org/core": "next",
31
+ "@twin.org/entity": "next",
32
+ "@twin.org/entity-storage-models": "0.0.1-next.2",
33
+ "@twin.org/logging-models": "next",
34
+ "@twin.org/nameof": "next",
35
+ "cassandra-driver": "^4.7.2"
36
+ },
37
+ "devDependencies": {
38
+ "@twin.org/entity-storage-connector-memory": "0.0.1-next.2",
39
+ "@twin.org/logging-connector-entity-storage": "next",
40
+ "@twin.org/nameof-transformer": "next",
41
+ "@types/node": "22.5.5",
42
+ "@vitest/coverage-v8": "2.1.1",
43
+ "copyfiles": "2.4.1",
44
+ "dotenv": "16.4.5",
45
+ "rimraf": "6.0.1",
46
+ "rollup": "4.21.3",
47
+ "rollup-plugin-copy": "3.5.0",
48
+ "rollup-plugin-typescript2": "0.36.0",
49
+ "ts-patch": "3.2.1",
50
+ "typedoc": "0.26.7",
51
+ "typedoc-plugin-markdown": "4.2.7",
52
+ "typescript": "5.6.2",
53
+ "vitest": "2.1.1"
54
+ },
55
+ "main": "./dist/cjs/index.cjs",
56
+ "module": "./dist/esm/index.mjs",
57
+ "types": "./dist/types/index.d.ts",
58
+ "exports": {
59
+ ".": {
60
+ "require": "./dist/cjs/index.cjs",
61
+ "import": "./dist/esm/index.mjs",
62
+ "types": "./dist/types/index.d.ts"
63
+ },
64
+ "./locales": "./locales"
65
+ },
66
+ "files": [
67
+ "dist/cjs",
68
+ "dist/esm",
69
+ "dist/types",
70
+ "locales",
71
+ "docs"
72
+ ]
73
+ }