zeekay and Hanzo Dev
d54045b5f0
Go 1.27.1, and the code it can say more simply
...
The module declares go 1.27.1. go fix applied the modernizers; omitzero
is not applied, since it changes what the JSON says.
Co-authored-by: Hanzo Dev <[email protected] >
2026-09-16 19:56:19 -07:00
Lunny Xiao
1a3c9ee2db
use golang ci lint v1 ( #2551 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2551
2026-02-07 23:53:33 +00:00
Lunny Xiao
8c2132d511
Add lint and fix code ( #2549 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2549
2026-02-07 18:40:04 +00:00
a4ae3d3615
Fix the issue of incorrect insertion of data in non UTC time zone zero for numeric types ( #2413 )
...
Fix the issue of incorrect insertion of data in non-UTC time zone zero for numeric types
Co-authored-by: CyJay <[email protected] >
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2413
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: CyJaySong <[email protected] >
Co-committed-by: CyJaySong <[email protected] >
2024-02-25 16:16:56 +00:00
56f3712c75
add table & column comment for postgres(add table comment for mysql) ( #2067 )
...
让 postgres 支持字段注释,只在 v1.2.5 上测试过(不知道怎么 import master)
发现 master 分支好像大改了?模式表名带 schema 了
使用方式和 mysql 相同
```go
type User struct {
Id int64 `xorm:"pk autoincr"`
Name string `json:"name" xorm:"not null default '' varchar(50) index(name_age) comment('用户 (it''s) 1; 名')"`
Salt string
Age int `json:"age" xorm:"not null default 0 int(10) index(name_age) comment('年龄')"`
Passwd string `xorm:"varchar(200)"`
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
}
_ = engine.Sync(new(User))
func (model User) TableComment() string {
return "表注释"
}
```
Co-authored-by: fanybook <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2067
Co-authored-by: fanybook <[email protected] >
Co-committed-by: fanybook <[email protected] >
2021-11-12 20:58:05 +08:00
Lunny Xiao
0217b00f81
refactor insert condition generation ( #1998 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1998
Co-authored-by: Lunny Xiao <[email protected] >
Co-committed-by: Lunny Xiao <[email protected] >
2021-07-20 13:46:24 +08:00
Lunny Xiao
e4fa916239
Fix comments ( #1896 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1896
Co-authored-by: Lunny Xiao <[email protected] >
Co-committed-by: Lunny Xiao <[email protected] >
2021-04-12 16:00:07 +08:00
appleboy and Lunny Xiao
c2a230ffd9
chore: improve titleCasedName performance ( #1691 )
...
udpate
Signed-off-by: Bo-Yi Wu <[email protected] >
chore: improve titleCasedName performance
Signed-off-by: Bo-Yi Wu <[email protected] >
Co-authored-by: Bo-Yi Wu <[email protected] >
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1691
2020-05-23 02:22:08 +00:00
Lunny Xiao and Bo-Yi Wu
bbc5ac56fb
chore: improve snakeCasedName performance ( #1688 )
...
chore: update
chore: udpate
chore: improve snakeCasedName performance
Co-authored-by: Bo-Yi Wu <[email protected] >
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1688
Reviewed-by: appleboy <[email protected] >
2020-05-22 02:53:55 +00:00
Lunny Xiao
dc2e927e38
Fix table name ( #1590 )
...
add test
Fix table name
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1590
2020-03-10 08:15:13 +00:00
Lunny Xiao
2a27b2bc79
Merge core package back into the main repository and split into serval sub packages. ( #1543 )
...
Fix test
Improve fmt
update go.mod
Move core as a sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1543
2020-02-24 08:53:18 +00:00