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
paginator
collation.go
common.go
consistency.go
context.go
context_committer_test.go
context_test.go
convert.go
engine.go feat: add tracing logs after process is complete (#8680) 2025-07-26 05:44:58 +02:00
engine_test.go
error.go
index.go feat: improve mysqlGetNextResourceIndex to use modern MariaDB features (#8691) 2025-08-08 01:51:55 +02:00
index_test.go
iterate.go
iterate_test.go
list.go
list_test.go
log.go
main_test.go
name.go
search.go
sequence.go
sql_postgres_with_schema.go
table_names_test.go