-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support different storage #380
Open
yvanu
wants to merge
18
commits into
caoyingjunz:master
Choose a base branch
from
yvanu:support-different-storage
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
62bc924
支持不同后端存储
yvanu 0d4ec97
恢复无关改动
yvanu bef19c8
优化导包规范
yvanu e9fad82
配置文件修改
yvanu 7db8c3c
修复config冲突
yvanu dd11394
解决config冲突
yvanu 20b6c09
处理gofmt问题
yvanu d4112b6
修改config.go
yvanu e88f10a
添加错误处理
yvanu 8b2dc04
提交go.sum
yvanu 314f6ee
修复ci未过
yvanu f84cd8e
降低sqlite包版本
yvanu df7a21f
去除config冗余字段及其他修改
yvanu c41d05a
Optimized support of multi databases
crazytaxii 601b67d
Merge branch 'caoyingjunz:master' into support-different-storage
yvanu ea302bb
Merge pull request #1 from crazytaxiii/dev
yvanu ef4e613
删除iface
yvanu 671770b
删除dbconn
yvanu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,7 @@ dist | |
# licensefmt | ||
hack/tools/licfmt/licfmt | ||
|
||
# SQLite | ||
pixiu.db | ||
|
||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
default: | ||
# 运行模式,可选 debug 和 release | ||
mode: debug | ||
# 服务监听端口 | ||
listen: 8090 | ||
# jwt 签名的 key | ||
jwt_key: pixiu | ||
# 自动创建指定模型的数据库表结构,不会更新已存在的数据库表 | ||
auto_migrate: true | ||
|
||
log_format: json | ||
|
||
# 数据库地址信息 | ||
mysql: | ||
host: peng | ||
user: root | ||
password: Pixiu868686 | ||
port: 3306 | ||
name: pixiu | ||
default: | ||
# 运行模式,可选 debug 和 release | ||
mode: debug | ||
# 服务监听端口 | ||
listen: 8090 | ||
# jwt 签名的 key | ||
jwt_key: pixiu | ||
# 自动创建指定模型的数据库表结构,不会更新已存在的数据库表 | ||
auto_migrate: true | ||
|
||
log_format: json | ||
|
||
db: | ||
# 数据库地址信息 | ||
# mysql: | ||
# host: peng | ||
# user: root | ||
# password: Pixiu868686 | ||
# port: 3306 | ||
# name: pixiu | ||
sqlite: | ||
db: pixiu.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var txFunc = func() error
去掉类型,没必要为它多写一个包There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是之前既有的类型定义,在db包下。
新开一个包写它也是为了解决循环依赖