Commit Graph

115 Commits

Author SHA1 Message Date
Technerder
868c89fd7e Updated pgx version 2021-07-24 21:22:15 -04:00
Technerder
c050ff8e3d Updated import to use v4 of pgx 2021-07-16 14:27:42 -04:00
Technerder
1fec873770 Modified storage to take in a pgxpool.Pool object 2021-07-15 19:49:03 -04:00
Technerder
877dae612d Fixed file formatting 2021-07-10 21:23:48 -04:00
Technerder
5bf7da2074 Fixed DB retrieving test 2021-07-10 21:22:37 -04:00
Technerder
9c850f5235 Added function to retriever the underlying database connection pool 2021-07-10 21:09:49 -04:00
Technerder
bd837d91ab Reverted Close() method signature change 2021-07-09 13:29:58 -04:00
Technerder
c4e1c722b1 Added go.mod, go.sum 2021-07-02 18:13:20 -04:00
Technerder
85e612ec79 Removed Postgre Close test since the pgx implementation of Close() doesn't return an error,
Removed Storage.Close()'s return method since the pgx implementation of Close() doesn't return an error,
Removed Config.maxIdleConns since pgx implementation doesn't support setting a maximum number of idle connections
2021-07-02 18:04:33 -04:00
Joey
36af0e2d7b Merge pull request #115 from gofiber/dependabot/go_modules/postgres/github.com/lib/pq-1.10.2
Bump github.com/lib/pq from 1.10.1 to 1.10.2 in /postgres
2021-05-21 08:40:28 +02:00
Roman
7bbbc01f84 feature: integrate SSL mode for PG connections (#77)
Right now, the default connection for postgres is `disable`. Some
databases require `verify` or even `required`.
This PR introduces a new implementation that allows the user to override
the `disable` mode. The PR keeps a backwards compatible config entry, that
sets the default behavior to `disable` if it's missing.
2021-05-18 13:00:40 +02:00
dependabot[bot]
ae3553dac9 Bump github.com/lib/pq from 1.10.1 to 1.10.2 in /postgres
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.1...v1.10.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 07:31:49 +00:00
dependabot[bot]
61a72fd587 Bump github.com/lib/pq from 1.10.0 to 1.10.1 in /postgres (#96)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.0...v1.10.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 15:04:03 +02:00
hi019
6a0f72c350 🐛 Fix bug preventing non-utf8 characters being saved in some databases (#87) 2021-05-05 21:17:52 -04:00
Roman
8a84698537 refactor: use TRUNCATE to reset the tables for postgres/ mysql (#74)
MySQL docs: https://dev.mysql.com/doc/refman/8.0/en/truncate-table.html
Postgres docs: https://www.postgresql.org/docs/current/sql-truncate.html
2021-03-31 14:11:33 +02:00
dependabot[bot]
4a20c75be6 Bump github.com/lib/pq from 1.8.0 to 1.10.0 in /postgres (#56)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.8.0 to 1.10.0.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.8.0...v1.10.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-20 16:07:43 +01:00
hi019
a66230ef17 Fix GC deleting values without expiry (#54)
* Test MYSQL Fix

* Test

* Add postgres

* Fix mysql

* Fix sqlite
2021-03-18 22:09:06 +01:00
Fenny
9a9ea7d242 📦 update modules 2020-11-23 09:33:29 +01:00
Fenny
ab94351a60 ✏ return nil for notfound 2020-11-23 09:30:50 +01:00
Fenny
fd56bd28da 🎭 stay backwards compatible 2020-11-18 09:00:59 +01:00
Fenny
ddef41c2ee ✏ update comments 2020-11-17 13:56:09 +01:00
Fenny
deb10fb2a7 🩹 fix duration check 2020-11-13 18:35:23 +01:00
Fenny
c57c524007 📦 add dynamodb 2020-11-12 20:14:21 +01:00
Fenny
c0fabf16eb 📦 go 1.14 + 2020-11-12 03:34:26 +01:00
Fenny
cdf009407b 🩹 update tests 2020-11-06 16:05:53 +01:00
kiyon
25ec0e291e 🚤 Improve sql storage 2020-11-06 09:56:34 +08:00
Fenny
e85859e8c4 🎨 update signatures 2020-11-06 01:49:30 +01:00
Fenny
f9a30234b9 🧹 introduce reset and close 2020-11-06 01:41:46 +01:00
Fenny
3799ccc4f5 🎨 update installation 2020-11-05 09:56:28 +01:00
Fenny
fdf31cf4c0 ✏ update signatures 2020-11-05 09:47:33 +01:00
Fenny
f965c69512 🧪 update tests 2020-11-05 09:37:33 +01:00
Fenny
8e13432b70 update go mods 2020-11-05 09:16:20 +01:00
Fenny
1b56ad40f8 Update postgres.go 2020-11-05 09:07:49 +01:00
Fenny
3948041f12 Update postgres.go 2020-11-05 09:07:39 +01:00
Fenny
88483745a5 zz 2020-11-05 09:03:33 +01:00
Fenny
e6da00b429 Update postgres.go 2020-11-05 08:15:48 +01:00
Fenny
4eaf74b5a1 Update postgres.go 2020-11-05 08:12:25 +01:00
Fenny
26cead0a82 Update postgres_test.go 2020-11-05 08:03:55 +01:00
Fenny
3ac51faaea Update postgres_test.go 2020-11-05 08:02:19 +01:00
Fenny
2da2e83bdd Update postgres_test.go 2020-11-05 07:10:25 +01:00
Fenny
253ac9bb10 . 2020-11-05 07:07:30 +01:00
Fenny
6710398f03 update readme 2020-11-05 06:18:29 +01:00
Fenny
3721c99616 fix ErrNotExist 2020-11-05 06:10:39 +01:00
Fenny
86b9cfe4c1 remove close method 2020-11-05 06:08:05 +01:00
Fenny
5571999805 sql queries T.T 2020-11-05 06:01:59 +01:00
Fenny
2458ab7395 help 2020-11-05 05:58:52 +01:00
Fenny
79f1f1609e update tests 2020-11-05 05:57:14 +01:00
Fenny
420f4834d2 Update postgres.go 2020-11-05 05:55:18 +01:00
Fenny
53f5b272a1 zzz 2020-11-05 05:44:12 +01:00
Fenny
8440b5e3c0 🎑 update tests 2020-11-05 05:36:27 +01:00