mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-18 10:18:14 +08:00
♻️ 合并 TGSql 与 TGSqlite,重构代码作为 Plugin 使用
This commit is contained in:
24
src/plugins/Sqlite/sql/initTable.ts
Normal file
24
src/plugins/Sqlite/sql/initTable.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @file plugins Sqlite sql initTable.ts
|
||||
* @description Sqlite 初始化数据 sql 语句
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.0
|
||||
*/
|
||||
|
||||
// data
|
||||
import createTable from "./createTable.sql?raw";
|
||||
import createTrigger from "./createTrigger.sql?raw";
|
||||
|
||||
/**
|
||||
* @description 初始化数据库表
|
||||
* @since Alpha v0.2.0
|
||||
* @returns {string[]} sql
|
||||
*/
|
||||
function initTableSql (): string[] {
|
||||
return [
|
||||
createTable,
|
||||
createTrigger,
|
||||
];
|
||||
}
|
||||
|
||||
export default initTableSql;
|
||||
Reference in New Issue
Block a user