Skip to content

Commit

Permalink
feat: add support return connection used on prisma error P2024.
Browse files Browse the repository at this point in the history
  • Loading branch information
xufeixiang committed Sep 25, 2024
1 parent fa6cc50 commit f79a0c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/plugins/i18n/prisma_error/zh_cn/query_engine.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PrismaError_P2020 = "该类型的值超出范围。{details}"
PrismaError_P2021 = "当前数据库中不存在表{table}"
PrismaError_P2022 = "当前数据库中不存在{column}列"
PrismaError_P2023 = "不一致的列数据: {message}"
PrismaError_P2024 = "从连接池中获取新连接的时已过(当前连接池超时: {timeout},连接限制: {connection_limit})。(更多信息: http://pris.ly/d/connection-pool)"
PrismaError_P2024 = "从连接池中获取新连接的已超时(当前连接池超时: {timeout},连接已用: {connection_used},连接限制: {connection_limit})。(更多信息: http://pris.ly/d/connection-pool)"
PrismaError_P2025 = "依赖一个或多个的记录未找到。{cause}"
PrismaError_P2026 = "当前数据库提供程序不支持查询使用的功能: {feature}"
PrismaError_P2027 = "查询执行期间数据库出现多个错误: {errors}"
Expand Down
4 changes: 2 additions & 2 deletions pkg/plugins/i18n/prismaerror_i18n_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f79a0c0

Please sign in to comment.