服务器使用量
未统计
服务玩家数
未统计
下载量
4,042
插件详细介绍
skript-db 为 Skript 提供了强大的直接数据库访问能力,适合需要在脚本中读取和写入 SQL 数据的场景。
特点
- 自动防止 SQL 注入
- 支持同时连接多个数据库
- 提供非常直观的列表变量系统,用于读取查询结果
说明
- 这是 btk5h 的 skript-db 分支版本,并包含一些修改。
- 有关更新日志和更多语法,请查看我们的 git repository。
文档与下载
- Documentation/Source -
- Releases
快速开始
以下以 MySQL 为例,但也可以使用 SQLite、MariaDB、PostgreSQL。
MySQL 示例
on script load:
set {-sql} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"查询示例
command /dbtest:
trigger:
execute "select * from table" in {-sql} and store the result in {_output::*}
send "First entry in column: %{_output::columnname::1}%"插入示例
command /insertmyprofile:
trigger:
execute "INSERT INTO table (uuid,name,lastjoin) VALUES (%uuid of player%,%name of player%,%rounded unix timestamp of now%) ON DUPLICATE KEY UPDATE name=VALUES(name),lastjoin=VALUES(lastjoin)" in {-sql}支持
- 你可以在 git repository 中创建 issue 获取支持。
- 你也可以在我们的 Matrix chatroom 中获得实时聊天支持。
测试支持版本
版本分布
基本信息
插件名称
skript-db (Updated)
作者
Govindas
平台
Bukkit / Spigot
支持版本
1.9 - 1.17
点赞数
2
最近版本
暂无数据
-