Skip to content

Commit

Permalink
build: 2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 11, 2022
1 parent b308f65 commit 664f03c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ dependencies {
* [MiraiHibernateRecorder](src/main/kotlin/xyz/cssxsh/mirai/hibernate/MiraiHibernateRecorder.kt)
是本插件自带的消息记录器,通过对 `MessageEvent``MessagePostSendEvent` 记录,保存消息历史到数据库

* [Configuration.addRandFunction](src/main/kotlin/xyz/cssxsh/hibernate/Criteria.kt)
* [CriteriaBuilder.rand](src/main/kotlin/xyz/cssxsh/hibernate/Criteria.kt)
`MiraiHibernateConfiguration` 中会对 Sqlite / PostgreSql 的 `random` 进行别名注册为 `rand` 统一SQL语句的中的随机函数名

* [CriteriaBuilder.dice](src/main/kotlin/xyz/cssxsh/hibernate/Criteria.kt)
`MiraiHibernateConfiguration` 中会注册名为 `rand` 的宏,用于随机取行

### 示例代码

* [kotlin](src/test/kotlin/xyz/cssxsh/mirai/test/MiraiHibernatePluginTest.kt)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "xyz.cssxsh.mirai"
version = "2.3.3"
version = "2.3.4"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public object MiraiHibernatePlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin",
name = "mirai-hibernate-plugin",
version = "2.3.3",
version = "2.3.4",
) {
author("cssxsh")

Expand Down

0 comments on commit 664f03c

Please sign in to comment.