一个小小的包裹 window.postMessage 用于构建有 TypeScript 支持的 Beykeer Studio 插件.
安装
npm install @beekeeperstudio/plugin
# or
yarn add @beekeeperstudio/plugin
快速启动
import { getTables, runQuery } from '@beekeeperstudio/plugin';
// Get all tables in the current database
const tables = await getTables();
// Run a SQL query
const result = await runQuery({ query: 'SELECT * FROM users LIMIT 10' });
发展
# Build the library
npm run build
# Prepare for publishing
npm run prepublishOnly