100 sao GitHub và vẫn tăng — codemirror/lang-sql là dự án TypeScript mà TopGit đang theo dõi trên nền tảng. SQL language support for the CodeMirror code editor
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This repository has moved to https://code.haverbeke.berlin/codemirror/lang-sql
@codemirror/lang-sql
[ 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.
Usage
import {EditorView, basicSetup} from "codemirror"
import {sql} from "@codemirror/lang-sql"
const view = new EditorView({
parent: document.body,
doc: `select * from users where age > 20`,
extensions: [basicSetup, sql()]
})
Use sql({dialect: PostgreSQL}) or similar to select a specific SQL
dialect.
API Reference
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
SQLConfig
Options used to configure an SQL extension.
dialect?: SQLDialect
The dialect to use. Defaults to
StandardSQL.
schema?: SQLNamespace
You can use this to define the schemas, tables, and their fields
for autocompletion.
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.
The type used to describe a level of the schema for
completion. Can be an array of
options (columns), an object mapping table or schema names to
deeper levels, or a {self, children} object that assigns a
completion option to use for its parent property, when the default option
(its name as label and type "type") isn't suitable.
class
SQLDialect
Represents 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.
codemirror/lang-sql có 100 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/codemirror/lang-sql. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
codemirror/lang-sql có phải mã nguồn mở không?
Có — codemirror/lang-sql phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/codemirror/lang-sql.
codemirror/lang-sql còn đang phát triển không?
Commit gần nhất trên codemirror/lang-sql là 6 tháng trước (theo timestamp GitHub). Repo có 48 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
codemirror/lang-sql là gì?
codemirror/lang-sql (codemirror/lang-sql) là dự án TypeScript trên GitHub. Theo mô tả gốc: SQL language support for the CodeMirror code editor
Đọc thêm về codemirror/lang-sql ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/codemirror/lang-sql là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về lang-sql?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về lang-sql.