Giter VIP home page Giter VIP logo

hasura's Introduction

EESAST Hasura

EESAST Hasura migrations and metadata files

开发

Build Status

环境

  • Node.js npm / yarn: Use hasura-cli to manage
  • Docker Get & Install

工具

  • git
  • any terminal or vscode

使用

使用 EESAST 服务器上的 hasura-dev 时,需在本地的 .env 中添加相应的 HASURA_GRAPHQL_ENDPOINTHASURA_GRAPHQL_ADMIN_SECRET

其他环境变量含义见hasura-cli config-reference

脚本

围绕 Hasura CLI 展开,参看文档

使用 Hasura CLI 启动的 console 页面会记录所有更改,请务必不要使用 docker 自带的 console(docker-compose.yaml中已禁用该功能)

apply

将仓库中的 migrations 和 metadata 应用在本地 docker 中运行的 Hasura 和 postgres 上

第一次部署 docker 后执行此指令可能会有报错 FatalError: function \"set_current_timestamp_s with same argument types",请先使用 console,在其中的 Data-SQL处执行 DROP FUNCTION public.set_current_timestamp_updated_at;。此方案可能不一定可以解决问题,参看 hasura/graphql-engine:issues#3633

console

打开 Hasura console

hasura

用作执行一般的 hasura-cli 指令,也可以替代另外几个

yarn hasura [command] => hasura [command]

migrate-squash

"hasura migrate squash" 的替代,用来将多次改动合并为“一次”

hasura migrate squash --name "<feature-name>" --from <start-migration-version>

# note down the version

# mark the squashed migration as applied on this server
hasura migrate apply --version "<squash-migration-version>" --skip-execution

hasura's People

Contributors

duskmoon314 avatar bryantsuen avatar b2r66sun avatar chen-yy20 avatar dazhuzhu-github avatar yang-xijie avatar renovate-bot avatar w-zhih avatar sigmachen2001 avatar yms19 avatar

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.