forgejo/models/db
BtbN c872758c05 feat: improve mysqlGetNextResourceIndex to use modern MariaDB features (#8691)
MariaDB supports "INSERT ... RETURNING ..." since 10.5.0, so this patch makes `mysqlGetNextResourceIndex` use that, provided the query is run on MariaDB of a sufficient version. If it's not supported it proceeds as it always did.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8691
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: BtbN <btbn@btbn.de>
Co-committed-by: BtbN <btbn@btbn.de>
2025-08-08 01:51:55 +02:00
..
install fix: make installing Forgejo work again (#7452) 2025-04-04 03:30:19 +00:00
paginator
collation.go
common.go
consistency.go
context.go fix: use parent context for new transactions (#8464) 2025-07-10 14:07:18 +02:00
context_committer_test.go
context_test.go fix: use parent context for new transactions (#8464) 2025-07-10 14:07:18 +02:00
convert.go
engine.go feat: add tracing logs after process is complete (#8680) 2025-07-26 05:44:58 +02:00
engine_test.go fix various typos (#7690) 2025-04-28 06:46:29 +00:00
error.go
index.go feat: improve mysqlGetNextResourceIndex to use modern MariaDB features (#8691) 2025-08-08 01:51:55 +02:00
index_test.go feat: use XORM EngineGroup instead of single Engine connection (#7212) 2025-03-30 11:34:02 +00:00
iterate.go
iterate_test.go feat: use XORM EngineGroup instead of single Engine connection (#7212) 2025-03-30 11:34:02 +00:00
list.go
list_test.go feat: use XORM EngineGroup instead of single Engine connection (#7212) 2025-03-30 11:34:02 +00:00
log.go chore(cleanup): suppress non actionable XORM warnings (#8021) 2025-05-30 13:01:08 +02:00
main_test.go
name.go
search.go
sequence.go
sql_postgres_with_schema.go
table_names_test.go chore: do not require empty fixtures to clean tables (#8353) 2025-06-30 23:04:16 +02:00