@cubejs-backend/trino-driver 0.31.12

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/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@cubejs-backend/trino-driver",
3
+ "description": "Cube.js Trino database driver",
4
+ "author": "Cube Dev, Inc.",
5
+ "version": "0.31.12",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/cube-js/cube.js.git",
9
+ "directory": "packages/cubejs-trino-driver"
10
+ },
11
+ "engines": {
12
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
13
+ },
14
+ "main": "dist/src/index.js",
15
+ "typings": "dist/src/index.d.ts",
16
+ "scripts": {
17
+ "build": "rm -rf dist && npm run tsc",
18
+ "tsc": "tsc",
19
+ "watch": "tsc -w",
20
+ "lint": "eslint src/* --ext .ts",
21
+ "lint:fix": "eslint --fix src/* --ext .ts"
22
+ },
23
+ "dependencies": {
24
+ "@cubejs-backend/base-driver": "^0.31.11",
25
+ "@cubejs-backend/prestodb-driver": "^0.31.12",
26
+ "@cubejs-backend/schema-compiler": "^0.31.12",
27
+ "@cubejs-backend/shared": "^0.31.0",
28
+ "presto-client": "^0.12.2",
29
+ "ramda": "^0.27.0",
30
+ "sqlstring": "^2.3.1"
31
+ },
32
+ "license": "Apache-2.0",
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "devDependencies": {
37
+ "@cubejs-backend/linter": "^0.31.0"
38
+ },
39
+ "eslintConfig": {
40
+ "extends": "../cubejs-linter"
41
+ },
42
+ "gitHead": "741c9979ab26f04c018e9ba65dddaa5c70428e91"
43
+ }
@@ -0,0 +1,12 @@
1
+ import { PrestoDriver } from '@cubejs-backend/prestodb-driver';
2
+ import { PrestodbQuery } from '@cubejs-backend/schema-compiler/dist/src/adapter/PrestodbQuery';
3
+
4
+ export class TrinoDriver extends PrestoDriver {
5
+ public constructor(options: any) {
6
+ super({ ...options, engine: 'trino' });
7
+ }
8
+
9
+ public static dialectClass() {
10
+ return PrestodbQuery;
11
+ }
12
+ }
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { TrinoDriver } from './TrinoDriver';
2
+
3
+ export default TrinoDriver;
4
+ export { TrinoDriver };
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "include": [
4
+ "src",
5
+ "test"
6
+ ],
7
+ "compilerOptions": {
8
+ "outDir": "dist",
9
+ "rootDir": ".",
10
+ "baseUrl": "."
11
+ }
12
+ }