TiDB in browser, with enhanced console
- Install Python 3
- Run a web server using
python -m http.server 8000
- Open http://127.0.0.1:8000 in your browser
- More beautiful color scheme
- MySQL-like prompt text (uses
SELECT DATABASE()
to show current using database) - Blinking cursor
- Smooth scroll when executing commands
- Fix scrolling to top when pasting query (needs improvement)
- MySQL-like error codes
- JavaScript API for fetching list of databases, tables, and table schemas (needs improvement)
- Get database names:
await getDatabaseNames()
- Get table names of a database:
await getTableNames(databaseName)
- Get table schema:
await getTableSchema(databaseName, tableName)
- Get table contents:
await getTableContents(databaseName, tableName)
- Fix query splitting
- Autocomplete
- Syntax highlighting