{"library":"sql-summary","type":"library","category":null,"description":"sql-summary (v1.0.1) is a lightweight JavaScript library that analyzes any SQL query and produces a concise summary string containing the main verb (SELECT, INSERT, UPDATE, etc.), the type of object operated on (TABLE, DATABASE, etc.), and the primary table or database name. It is maintained by Elastic and is ideal for logging, monitoring, and grouping similar queries without revealing sensitive details. It has minimal dependencies and is compatible with Node.js and browsers. Release cadence is low; the package is stable and receives updates for bug fixes.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","sql","summary","query","log","logging","analyze"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-summary","imports":["var sqlSummary = require('sql-summary')","const sqlSummary = require('sql-summary')","import sqlSummary from 'sql-summary'; // May work with bundlers using interop"]},{"cmd":"yarn add sql-summary","imports":[]},{"cmd":"pnpm add sql-summary","imports":[]}],"homepage":"https://github.com/elastic/sql-summary","github":"https://github.com/elastic/sql-summary","docs":null,"changelog":null,"pypi":null,"npm":"sql-summary","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}