jsonschema-bigquery

Convert JSON schema to Google BigQuery schema

jsonschema-bigquery

Convert JSON schema to Google BigQuery schema

This includes the ability to:

  1. Create tables
  2. Patch tables

Further enhancements are planned: delete tables (dev only), create dataset, set data ACLs

Note that some features involve bespoke interpretation of schema details suited to our environment.

Install

npm install jsonschema-bigquery

Consume

jsbq -p <gbq project> -d <gbq dataset> -j <json schema file> --preventAdditionalObjectProperties

For embedded usage the following will allow and support runtime schema conversion and table maintenance:

const jsonSchemaBigquery = require('jsonschema-bigquery')
const bigquerySchema = jsonSchemaBigquery.run(jsonSchemaObject, options)

Please ensure that the input JSON schema is dereferenced so that all external references have been resolved. json-schema-ref-parsercan do this, prior to using this module.

Options

{
  preventAdditionalObjectProperties: true
}
  • preventAdditionalObjectProperties- boolean, check for additional object properties in schemas.

Test

npm test

HomePage

https://github.com/thedumbterminal/jsonschema-bigquery#readme

Repository

https+https://github.com/thedumbterminal/jsonschema-bigquery


上一篇:zeo-name
下一篇:koogn

相关推荐

  • react-jsonschema-form

    A simple React component capable of building HTML forms out of a JSON schema. reactjsonschemaform =...

    8 个月前
  • raml-jsonschema-expander

    Expands JSON Schema draft 4 references from a RAML object created with raml2obj. RAML JSON Schema E...

    1 年前
  • jsonschema-draft4

    A copy of json schema draft 4. jsonschemadraft4 NPM versionnpmimagenpmurl Downloadsdownloadsimagen...

    1 年前
  • jsonschema

    A fast and easy to use JSON Schema validator Build Status(https://secure.travisci.org/tdegrunt/json...

    2 年前
  • @types/react-jsonschema-form

    TypeScript definitions for reactjsonschemaform Installation Summary This package contains ...

    3 个月前
  • @google-cloud/bigquery

    Google BigQuery Client Library for Node.js //: "This README.md file is autogenerated, all changes ...

    4 个月前

官方社区

扫码加入 JavaScript 社区