@tmlmobilidade/databases 20260411.1243.43 → 20260418.947.46
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.
|
@@ -2,7 +2,7 @@ import { type ClickHouseSchema, type ClickHouseTableEngine } from '../types/inde
|
|
|
2
2
|
import { queryFromFile } from '../utils/clickhouse/query-from-file.js';
|
|
3
3
|
import { queryFromString } from '../utils/clickhouse/query-from-string.js';
|
|
4
4
|
import { type ClickHouseClient, type DataFormat } from '@clickhouse/client';
|
|
5
|
-
export declare abstract class ClickHouseInterfaceTemplate<T> {
|
|
5
|
+
export declare abstract class ClickHouseInterfaceTemplate<T extends object> {
|
|
6
6
|
protected readonly abstract databaseName: string;
|
|
7
7
|
protected readonly abstract schema: ClickHouseSchema<T>;
|
|
8
8
|
protected readonly abstract tableName: string;
|
|
@@ -37,4 +37,6 @@ export interface ClickHouseColumn {
|
|
|
37
37
|
* A ClickHouse schema is a mapping of column names to their definitions (ClickHouseColumn).
|
|
38
38
|
* The generic type T represents the shape of the data, and the keys of T are used as column names.
|
|
39
39
|
*/
|
|
40
|
-
export type ClickHouseSchema<T> =
|
|
40
|
+
export type ClickHouseSchema<T extends object> = {
|
|
41
|
+
[K in keyof T]: ClickHouseColumn;
|
|
42
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/databases",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20260418.947.46",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "iso@tmlmobilidade.pt",
|
|
6
6
|
"name": "TML-ISO"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tmlmobilidade/tsconfig": "*",
|
|
49
|
-
"@types/node": "25.
|
|
49
|
+
"@types/node": "25.6.0",
|
|
50
50
|
"resolve-tspaths": "0.8.23",
|
|
51
51
|
"tsc-watch": "7.2.0",
|
|
52
52
|
"typescript": "5.9.3"
|