34 Commits (dca1af7cad7c6a6bb95d933c36c67c590a1a0d23)

Author SHA1 Message Date
wxiaoguang dca1af7cad
Remove global context from db package (#35371) 4 months ago
wxiaoguang 0cbaa0b662
Remove incorrect "db.DefaultContext" usages (#35366) 4 months ago
wxiaoguang 10cf2023bf
Refactor container package (#34877) 6 months ago
silverwind 1f35435b81
Run `gopls modernize` on codebase (#34751) 6 months ago
Lunny Xiao 6c8fb8d455
Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 10 months ago
wxiaoguang 1c9b022c4d
Refactor db package and remove unnecessary `DumpTables` (#32930) 1 year ago
wxiaoguang a920fcfd91
Fix db engine (#32351) 1 year ago
Jason Song c6c4d66004
Fix misuse of `TxContext` (#30061) 2 years ago
delvh 778ad795fd
Refactor deletion (#28610) 2 years ago
Lunny Xiao dd30d9d5c0
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2 years ago
Lunny Xiao df1e7d0067
Use db.Find instead of writing methods for every object (#28084) 2 years ago
Lunny Xiao 0b10df67ce
Improve DeleteByID (#26904) 2 years ago
silverwind 88f835192d
Replace `interface{}` with `any` (#25686) 2 years ago
wxiaoguang 520eb57d76
Use a separate admin page to show global stats, remove `actions` stat (#25062) 3 years ago
KN4CK3R 0ae1ed749d
Remove all package data after tests (#22984) 3 years ago
Lunny Xiao f2772b5920
Move delete user to service (#22478) 3 years ago
Jason Song a35714372d
Fix halfCommitter and WithTx (#22366) 3 years ago
Jason Song 6135359a04
Always reuse transaction (#22362) 3 years ago
Jason Song e5deeda0aa
Support estimated count with multiple schemas (#22276) 3 years ago
silverwind 0585ac3ac6
Update go dev dependencies (#22064) 3 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 3 years ago
Lunny Xiao 34283a74e8
Allow detect whether it's in a database transaction for a context.Context (#21756) 3 years ago
Lunny Xiao 9a70a12a34
Merge db.Iterate and IterateObjects (#21641) 3 years ago
luzpaz d29d6d1991
Fix various typos (#20338) 3 years ago
Lunny Xiao 0649c54275
Adjust transaction handling via db.Context (#20031) 4 years ago
Lunny Xiao d91d4db344
Move tests as seperate sub packages to reduce duplicated file names (#19951) 4 years ago
zeripath ffb7ab31f2
Estimate Action Count in Statistics (#19775) 4 years ago
6543 92f139d091
Use for a repo action one database transaction (#19576) 4 years ago
Lunny Xiao 397d2ac303
Move deletebeans into models/db (#18781) 4 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 4 years ago
Lunny Xiao d710af6669
Remove NewSession method from db.Engine interface (#17577) 4 years ago
zeripath 5a8dd96b33
Ensure that git daemon export ok is created for mirrors (#17243) 4 years ago
zeripath 9302eba971
DBContext is just a Context (#17100) 4 years ago
Lunny Xiao a4bfef265d
Move db related basic functions to models/db (#17075) 4 years ago