shiori/internal/database
Felipe Martin Garcia dc73cd825b
fix(psql): save bookmarks not using passed bookmark id for the insert (#484)
* fix(psql): get last inserted id from insert query

book.ID was not being used, so inserts were failing.
the check for book.ID was removed and it is filled with the returning
id from the insert query

* test(psql): added save bookmarks simple test

* ci: added postgresql service

* fix(typo): QueryRow -> QueryRowContext

* ci: explicit postgresql port

* ci(test): 1.19 only

* ci: bind psql to localhost

* test(pg): migrate before test

* test(pg): migrate database before test

* fix(pg): check no rows error on get query
2022-10-09 17:05:30 +02:00
..
migrations fix: remove manual transaction on sqlite migration 2 (#468) 2022-08-11 13:40:17 +02:00
database.go refactor:pass ctx to db layer, return err instead of recover panic (#450) 2022-09-30 12:19:36 +02:00
mysql.go refactor:pass ctx to db layer, return err instead of recover panic (#450) 2022-09-30 12:19:36 +02:00
pg.go fix(psql): save bookmarks not using passed bookmark id for the insert (#484) 2022-10-09 17:05:30 +02:00
pg_test.go fix(psql): save bookmarks not using passed bookmark id for the insert (#484) 2022-10-09 17:05:30 +02:00
sqlite.go fix err in keyword searching (#494) 2022-10-09 17:05:01 +02:00