File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ # @beekeeperstudio/plugin
2+
3+ A TypeScript wrapper library for building Beekeeper Studio plugins that enables communication between your plugin and the main application.
4+
5+ ## Installation
6+
7+ ``` bash
8+ npm install @beekeeperstudio/plugin
9+ ```
10+
11+ ## Quick Start
12+
13+ ``` typescript
14+ import { request , notify } from ' @beekeeperstudio/plugin' ;
15+
16+ // Get all tables in the current database
17+ const tables = await request (' getTables' );
18+
19+ // Run a SQL query
20+ const result = await request (' runQuery' , { query: ' SELECT * FROM users LIMIT 10' });
21+ ```
22+
23+ ## TypeScript Support
24+
25+ The library includes comprehensive TypeScript definitions:
26+
27+ ``` typescript
28+ import type {
29+ QueryResult ,
30+ ThemeType ,
31+ GetTablesResponse
32+ } from ' @beekeeperstudio/plugin' ;
33+ ```
34+
35+ ## Development
36+
37+ ``` bash
38+ # Build the library
39+ npm run build
40+
41+ # Prepare for publishing
42+ npm run prepublishOnly
43+ ```
44+
45+ ## License
46+
47+ MIT - see [ LICENSE] ( LICENSE ) file for details.
48+
You can’t perform that action at this time.
0 commit comments