Commit Graph

40 Commits

Author SHA1 Message Date
Juan Calderon-Perez
3a8b8d4f71 Add Conn() support to all storage drivers. (#451)
* Add DB() support for Redis driver

* Added support for DB() to all drivers

* Fixed typo in README and Lint issue

* Fix lint issue with ristretto db

* Fix lint issue with bbolt db

* Rename DB() to Conn()

* Replace all instances of _DB with _Conn

* Update all the README files

* Return ArangoDB Client instead of DB
2022-08-15 07:58:13 +02:00
iRedMail
ff1db4e2a4 Public sqlite db options: MaxOpenConns, MaxIdleConns, ConnMaxLifetime. (#310)
* Public sqlite db options: MaxOpenConns, MaxIdleConns, ConnMaxLifetime.

* Update sqlite3/README.md.

* Add comment lines for the public options.

* Typo

* Set default values for MaxIdleConns, MaxOpenConns, ConnMaxLifetime.
2022-01-25 12:58:19 +01:00
hi019
6a0f72c350 🐛 Fix bug preventing non-utf8 characters being saved in some databases (#87) 2021-05-05 21:17:52 -04: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
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
c57c524007 📦 add dynamodb 2020-11-12 20:14:21 +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
f9a30234b9 🧹 introduce reset and close 2020-11-06 01:41:46 +01:00
Fenny
253ac9bb10 . 2020-11-05 07:07:30 +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
8440b5e3c0 🎑 update tests 2020-11-05 05:36:27 +01:00
Fenny
f047848660 🎁 fix tests 2020-11-05 05:26:05 +01:00
Fenny
687d8ed82a Update sqlite3.go 2020-11-05 04:34:46 +01:00
Fenny
a40a792072 Update sqlite3.go 2020-11-05 04:28:38 +01:00
Fenny
eb8560f138 Update sqlite3.go 2020-11-05 04:26:14 +01:00
Fenny
567b6de7e7 Update sqlite3.go 2020-11-05 04:23:29 +01:00
Fenny
b4a848ca29 🎄 xmas present 2020-11-05 04:17:05 +01:00
Fenny
a6058cffb3 ✏ refactor storage 2020-11-04 20:49:53 +01:00
hi019
9bc05a8ff5 Remove unneeded import 2020-11-02 15:01:00 -05:00
Tom
f686d97dc8 📦 SQLite: Fix no expiration check on Set 2020-11-01 14:32:17 +00:00
Tom
6fdd3455f1 📦 SQLite: Fix no rows returned check 2020-11-01 14:13:22 +00:00
Tom
23a3640cfb 📦 Fix expiration checks
Affects memory, postgres and sqlite3 drivers
2020-11-01 13:33:57 +00:00
Fenny
dd72caf629 📦 postgres
Co-Authored-By: Alireza Salary <arsmn1996@gmail.com>
2020-11-01 12:25:26 +01:00
Fenny
127aa2a67d 🎑 update sqlite3 2020-11-01 10:52:23 +01:00
hi019
b84254e460 Make Get return nil instead of []byte{} 2020-10-31 23:24:33 -05:00
hi019
42714289aa Add tests 2020-10-31 11:53:04 -04:00
hi019
78d1a8282b Fix open 2020-10-31 11:26:51 -04:00
hi019
f7cb6eb5f6 Update comments, fix gc 2020-10-31 11:18:29 -04:00
hi019
f2dcfe31fe Add sqlite migration 2020-10-31 10:46:58 -04:00
hi019
3a21648a55 Add sqlite 2020-10-31 10:41:27 -04:00
Fenny
0692b9048e 🦴 update skeleton 2020-10-31 11:58:00 +01:00
Fenny
0d15cb4e81 🦴 update boilerplate 2020-10-31 11:11:01 +01:00
Fenny
7f29132a5f 📦 update mongodb 2020-10-31 09:51:32 +01:00
Fenny
1ceff481a8 🧥 fix reference 2020-10-31 09:08:00 +01:00
Fenny
9152ce37fe 📦 update redis 2020-10-31 07:55:18 +01:00
Fenny
ad49a4d6a6 👷‍♂️ add skeletons 2020-10-31 06:20:25 +01:00