Skip to content

CodeMirror SQL editor with autocomplete and DataTables integration.

License

Notifications You must be signed in to change notification settings

chancyk/sql_editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A prototype of a MySQL editor with syntax highlighting, autocomplete, and a sortable, searchable table with file exports; powered by CodeMirror and DataTables.

There are tags with a CodeMirror only editor version, and a CodeMirror and DataTables combo version with CSV, clipboard, and Excel exports.

The DataTable version is setup with a mock fake_post function that can be replaced with the jQuery's $.post, and pointed at a server-side route, which upon response will dynamically create the DataTable.

The SQL dialect can be change by altering the CodeMirror mode option to be one of the following MIME types, as specified by the sql plugin:

text/x-sql, text/x-mysql, text/x-mariadb, text/x-cassandra, text/x-plsql,
text/x-mssql, text/x-hive, text/x-pgsql, text/x-gql

About

CodeMirror SQL editor with autocomplete and DataTables integration.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages