Socket
Socket
Sign inDemoInstall

dbgate-sqltree

Package Overview
Dependencies
1
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dbgate-sqltree

JavaScript/TypeScript SQL query-builder library


Version published
Weekly downloads
138
increased by27.78%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

5.2.3

  • ADDED: Search entire table (multi column filter) #491
  • ADDED: OracleDB - connection to toher than default ports #496
  • CHANGED: OracleDB - status of support set to experimental
  • FIXED: OracleDB database URL - fixes: Connect to default Oracle database #489
  • ADDED: HTML, XML code highlighting for Edit cell value #485
  • FIXED: Intellisense - incorrect alias after ORDER BY clause #484
  • FIXED: Typo in SQL-Generator #481
  • ADDED: Data duplicator #480
  • FIXED: MongoDB - support for views #476
  • FIXED: "SQL:CREATE TABLE" generated SQL default value syntax errors #455
  • FIXED: Crash when right-clicking on tables #452
  • FIXED: View sort #436
  • ADDED: Arm64 version for Windows #473
  • ADDED: Sortable query results and data archive
  • CHANGED: Use transactions for saving table data
  • CHANGED: Save table structure uses transactions
  • ADDED: Table data editing - shows editing mark
  • ADDED: Editing data archive files
  • FIXED: Delete cascade options when using more than 2 tables
  • ADDED: Save to current archive commands
  • ADDED: Current archive mark is on status bar
  • FIXED: Changed package used for parsing JSONL files when browsing - fixes backend freezing
  • FIXED: SSL option for mongodb #504
  • REMOVED: Data sheet editor
  • FIXED: Creating SQLite autoincrement column
  • FIXED: Better error reporting from exports/import/dulicator
  • CHANGED: Optimalizede OracleDB analysing algorithm
  • ADDED: Mutli column filter for perspectives
  • FIXED: Fixed some scenarios using tables from different DBs
  • FIXED: Sessions with long-running queries are not killed

Readme

Source

dbgate-sqltree

JavaScript/TypeScript SQL query-builder library

dbgate-sqltree hold query definition in RAW JSON objects.

Sample usage

const { treeToSql, dumpSqlSelect } = require("dbgate-sqltree");
const dbgatePluginMysql = require("dbgate-plugin-mysql");

const select = {
  commandType: "select",
  from: {
    name: {
      pureName: "Album",
    },
  },
  columns: [
    {
      exprType: "column",
      columnName: "name",
    },
  ],
  orderBy: [
    {
      exprType: "column",
      columnName: "id",
      direction: "ASC",
    },
  ],
};

const sql = treeToSql(dbgatePluginMysql.driver, select, dumpSqlSelect);
console.log("Generated query:", sql);

See TypeScript definitions for complete list of available SQL command options.

Installation

yarn add dbgate-sqltree

Keywords

FAQs

Last updated on 27 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc