mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Support SQLite
This commit is contained in:
@@ -45,6 +45,7 @@ import {
|
||||
dataURItoBlob,
|
||||
jsonToMySQL,
|
||||
jsonToPostgreSQL,
|
||||
jsonToSQLite
|
||||
} from "../utils";
|
||||
import {
|
||||
AreaContext,
|
||||
@@ -978,6 +979,21 @@ export default function ControlPanel({
|
||||
}));
|
||||
},
|
||||
},
|
||||
{
|
||||
SQLite: () => {
|
||||
setVisible(MODAL.CODE);
|
||||
const src = jsonToSQLite({
|
||||
tables: tables,
|
||||
references: relationships,
|
||||
types: types,
|
||||
});
|
||||
setExportData((prev) => ({
|
||||
...prev,
|
||||
data: src,
|
||||
extension: "sql",
|
||||
}));
|
||||
},
|
||||
},
|
||||
{ DBML: () => { } },
|
||||
],
|
||||
function: () => { },
|
||||
|
||||
Reference in New Issue
Block a user