Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TuskQuery/sql-editor

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@tusk/sql-editor

Minimal SQL editor for Tusk. Hand-rolled tokenizer (no regex — Perry AOT constraint), per-line colorized rendering on top of perry/ui.

No autocomplete or LSP integration in v1.

Install

bun add @tusk/sql-editor
# or, when developing alongside Tusk:
#   "@tusk/sql-editor": "file:../tusk-sql-editor"

Usage

import { SqlEditor } from '@tusk/sql-editor';

const { handle, api } = SqlEditor({
  initialText: 'SELECT * FROM users LIMIT 100',
  onRun(sql) { /* … */ },
  onCancel() { /* … */ },
});

Status

Pre-D3: placeholder widget that renders the SQL text inline. Real multiline editor with token highlighting, ⌘↩ to run, and ⌘. to cancel land in milestone D3 of the Tusk plan.

License

MIT.

About

Minimal SQL editor for Tusk — hand-rolled tokenizer, colorized rendering on perry/ui.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.