mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 08:26:01 +00:00
get node script from shell script
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import _ from 'lodash';
|
||||
import { filterName } from 'dbgate-tools';
|
||||
import { extractPackageName, filterName } from 'dbgate-tools';
|
||||
|
||||
import { currentArchive, currentDatabase } from '../stores';
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
tabComponent: 'ShellTab',
|
||||
},
|
||||
{
|
||||
editor: `await dbgateApi.deployDb(${JSON.stringify(
|
||||
editor: `// @require ${extractPackageName($currentDatabase.connection.engine)}
|
||||
|
||||
await dbgateApi.deployDb(${JSON.stringify(
|
||||
{
|
||||
connection: {
|
||||
..._.omit($currentDatabase.connection, '_id', 'displayName'),
|
||||
|
||||
Reference in New Issue
Block a user