6.7.0-alpha.0 • Published 6 months ago

@react-awesome-query-builder/sql v6.7.0-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@react-awesome-query-builder/sql

npm

This packages provides import from SQL using node-sql-parser

Installation

Install:

npm i @react-awesome-query-builder/sql --save

Usage

import { Utils } from '@react-awesome-query-builder/core';
import { SqlUtils } from "@react-awesome-query-builder/sql";

const importFromSql = (sqlStr) => {
  const {tree, errors: sqlErrors, warnings: sqlWarnings} = SqlUtils.loadFromSql(sqlStr, state.config);
  if (sqlErrors.length) {
    console.log("Import errors: ", sqlErrors);
  }
  const {fixedTree} = Utils.sanitizeTree(tree, state.config);
  setState({
    ...state, 
    tree: fixedTree,
  });
};
6.7.0-alpha.0

6 months ago

6.6.15

7 months ago

6.6.14

8 months ago

6.6.13

9 months ago

6.6.12

10 months ago

6.6.11

10 months ago

6.6.10

10 months ago

6.6.9

11 months ago

6.6.8

11 months ago

6.6.7

11 months ago

6.6.6

11 months ago

6.6.5

11 months ago