Skip to content

Commit

Permalink
feat: add json schema and ts interface
Browse files Browse the repository at this point in the history
  • Loading branch information
xbmlz committed Jul 8, 2023
1 parent f17c40c commit 6290c52
Show file tree
Hide file tree
Showing 9 changed files with 541 additions and 35 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ A CLI tool to show database schema, support Postgres, MySQL, MariaDB, SQLite, Mi

## Features

- Show database schema, including tables, views, ddl, indexes and triggers.
- Show database schema, including tables, views, indexes and triggers.
- Support Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Oracle Database etc.
- Support view information on Browser.(Based on [Docsify](https://docsify.js.org/#/))
- Support show table ddl, json schema, ts interface etc.
- Support export to PDF, PNG, JPEG, SVG, and HTML.
- Support show update history.
- Support save and load database connection information.
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dbshow",
"type": "module",
"version": "0.0.3",
"version": "0.0.4",
"description": "A CLI tool to show database schema, support MySQL, PostgreSQL, SQLite, and MongoDB.",
"author": "xbmlz <chenxc170016@gmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -44,13 +44,18 @@
"dependencies": {
"@inquirer/prompts": "^2.3.0",
"gradient-string": "^2.0.2",
"json-schema-to-typescript": "^13.0.2",
"mysql2": "^3.5.0",
"sequelize": "^6.32.1"
"ora": "^6.3.1",
"sequelize": "^6.32.1",
"sql-ddl-to-json-schema": "^4.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.7",
"@types/gradient-string": "^1.1.2",
"@types/json-schema": "^7.0.12",
"@types/node": "^20.4.0",
"@types/ora": "^3.2.0",
"bumpp": "^9.1.1",
"eslint": "^8.44.0",
"esno": "^0.16.3",
Expand Down
Loading

0 comments on commit 6290c52

Please sign in to comment.