GithubHelp home page GithubHelp logo

rongfengliang / cube.js-cratedb-patch-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 209 KB

cube.js works with cratedb && apply some patch for pg driver

JavaScript 88.18% Shell 11.82%
cubejs cratedb patch

cube.js-cratedb-patch-demo's Introduction

Cratedb with cube.js

just for test

Create tables

  • DDL
CREATE TABLE IF NOT EXISTS "doc"."users" (
   "id" INTEGER,
   "username" TEXT
);

CREATE TABLE IF NOT EXISTS "doc"."userapps" (
   "id" INTEGER,
   "appname" TEXT,
   "appversion" TEXT,
   "flags" BOOLEAN
)
  • Insert demo datas
INSERT INTO  userapps(id,appname,appversion,flags)
VALUES
(4,'login','1.0',TRUE),
(5,'logo','1.0',TRUE),
(6,'market','1.0',TRUE);

INSERT INTO users(id,username)
VALUES
(4,'app'),
(5,'dalong'),
(6,'rong');

Running

  • Start cratedb server
docker-compose up -d
  • Install deps
yarn
  • Apply patch
patch < cratedb-driver-patch.patch 

can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- node_modules/@cubejs-backend/postgres-driver/driver/PostgresDriver-origin.js       2019-08-19 13:03:59.000000000 +0800
|+++ node_modules/@cubejs-backend/postgres-driver/driver/PostgresDriver.js      2019-08-19 13:04:05.000000000 +0800
--------------------------
File to patch: node_modules/@cubejs-backend/postgres-driver/driver/PostgresDriver.js
patching file node_modules/@cubejs-backend/postgres-driver/driver/PostgresDriver.js
  • Start dev server
yarn dev

cube.js-cratedb-patch-demo's People

Contributors

dependabot[bot] avatar rongfengliang avatar

Watchers

 avatar  avatar

Forkers

voicon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.