SimpleDatabase

Key
Value

type

類型 sqlite、mysql

插件不一定都支援非原先設計的存儲方式,請見 委託須知 這僅是一個通用設定,實際內部執行的 sql 語法不一定兼容

host

主機:端口

database

資料庫名稱

extra

連接附加字串

auth

username: 帳號 password: 密碼

範例

MySQL

database:
  +: SimpleDatabase
  type: mysql
  host: 127.0.0.1:3307
  database: Codex
  extra: '?autoReconnect=true&useUnicode=yes'
  auth:
    username: TJPlugin
    password: https://discord.tjservice.org/

SQLite

database:
  ==: SimpleDatabase
  type: sqlite
  host: plugins\Codex
  database: data.db
  extra: ''
  auth:
    username: TJPlugin
    password: All the best!

Last updated