6.7.0-alpha.0 • Published 8 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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

8 months ago

6.6.15

8 months ago

6.6.14

10 months ago

6.6.13

11 months ago

6.6.12

12 months ago

6.6.11

12 months ago

6.6.10

12 months ago

6.6.9

1 year ago

6.6.8

1 year ago

6.6.7

1 year ago

6.6.6

1 year ago

6.6.5

1 year ago