Gathering detailed insights and metrics for query-master-lang-sql
Gathering detailed insights and metrics for query-master-lang-sql
Gathering detailed insights and metrics for query-master-lang-sql
Gathering detailed insights and metrics for query-master-lang-sql
SQL language support for the CodeMirror code editor
npm install query-master-lang-sql
Typescript
Module System
Node Version
NPM Version
72.8
Supply Chain
99
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
1,095
Last Day
1
Last Week
2
Last Month
24
Last Year
255
MIT License
88 Stars
136 Commits
41 Forks
4 Watchers
1 Branches
10 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
1.0.7
Package Id
query-master-lang-sql@1.0.7
Unpacked Size
104.59 kB
Size
30.22 kB
File Count
9
NPM Version
8.15.0
Node Version
18.7.0
Published on
Aug 24, 2023
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-83.3%
2
Compared to previous week
Last Month
-20%
24
Compared to previous month
Last Year
-69.6%
255
Compared to previous year
1
[ WEBSITE | ISSUES | FORUM | CHANGELOG ]
This package implements SQL language support for the CodeMirror code editor.
The project page has more information, a number of examples and the documentation.
This code is released under an MIT license.
We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.
sql(config?: SQLConfig = {}) → LanguageSupport
SQL language support for the given SQL dialect, with keyword completion, and, if provided, schema-based completion as extra extensions.
interface
SQLConfigOptions used to configure an SQL extension.
dialect?: SQLDialect
The dialect to use. Defaults to
StandardSQL
.
schema?: Object<readonly (string | Completion)[]>
An object that maps table names, optionally prefixed with a
schema name ("schema.table"
) to options (columns) that can be
completed for that table. Use lower-case names here.
tables?: readonly Completion[]
By default, the completions for the table names will be
generated from the schema
object. But if you want to
customize them, you can pass an array of completions through
this option.
schemas?: readonly Completion[]
Similar to tables
, if you want to provide completion objects
for your schemas rather than using the generated ones, pass them
here.
defaultTable?: string
When given, columns from the named table can be completed directly at the top level.
defaultSchema?: string
When given, tables prefixed with this schema name can be completed directly at the top level.
upperCaseKeywords?: boolean
When set to true, keyword completions will be upper-case.
class
SQLDialectRepresents an SQL dialect.
language: LRLanguage
The language for this dialect.
spec: SQLDialectSpec
The spec used to define this dialect.
extension: Extension
Returns the language for this dialect as an extension.
static define(spec: SQLDialectSpec) → SQLDialect
Define a new dialect.
type
SQLDialectSpecConfiguration for an SQL Dialect.
keywords?: string
A space-separated list of keywords for the dialect.
builtin?: string
A space-separated string of built-in identifiers for the dialect.
types?: string
A space-separated string of type names for the dialect.
backslashEscapes?: boolean
Controls whether regular strings allow backslash escapes.
hashComments?: boolean
Controls whether # creates a line comment.
slashComments?: boolean
Controls whether //
creates a line comment.
spaceAfterDashes?: boolean
When enabled --
comments are only recognized when there's a
space after the dashes.
doubleDollarQuotedStrings?: boolean
When enabled, things quoted with "$" are treated as strings, rather than identifiers.
doubleQuotedStrings?: boolean
When enabled, things quoted with double quotes are treated as strings, rather than identifiers.
charSetCasts?: boolean
Enables strings like _utf8'str'
or N'str'
.
operatorChars?: string
The set of characters that make up operators. Defaults to
"*+\-%<>!=&|~^/"
.
specialVar?: string
The set of characters that start a special variable name.
Defaults to "?"
.
identifierQuotes?: string
The characters that can be used to quote identifiers. Defaults
to "\""
.
unquotedBitLiterals?: boolean
Controls whether bit values can be defined as 0b1010. Defaults to false.
treatBitsAsBytes?: boolean
Controls whether bit values can contain other characters than 0 and 1. Defaults to false.
StandardSQL: SQLDialect
The standard SQL dialect.
PostgreSQL: SQLDialect
Dialect for PostgreSQL.
MySQL: SQLDialect
MySQL dialect.
MariaSQL: SQLDialect
MSSQL: SQLDialect
SQL dialect for Microsoft SQL Server.
SQLite: SQLDialect
SQLite dialect.
Cassandra: SQLDialect
Dialect for Cassandra's SQL-ish query language.
PLSQL: SQLDialect
PL/SQL dialect.
keywordCompletionSource(dialect: SQLDialect, upperCase?: boolean = false) → CompletionSource
Returns a completion source that provides keyword completion for the given SQL dialect.
schemaCompletionSource(config: SQLConfig) → CompletionSource
Returns a completion sources that provides schema-based completion for the given configuration.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More