Sarah Aladetan
e8acbedb52
update migration generator test to rely on config table name
...
should we do this though? i can see an argument where we actually keep the test as is because the default `table_name` is still `key_values` and we're trying to maintain original usage expectations with this PR
2019-12-09 12:39:35 -08:00
Sarah Aladetan
d939c8ac0b
update migration generator to use table name from config
2019-12-09 12:37:25 -08:00
Sarah Aladetan
5aa1815e92
update Github::KV to use table name from config
2019-12-09 12:36:59 -08:00
Sarah Aladetan
eb6b8cdcff
create specs for config model and DS methods
2019-12-09 12:28:09 -08:00
Sarah Aladetan
89c1dfd7b4
create config model for storing table name and methods for accessing and modifying config values
2019-12-09 12:06:44 -08:00
Nathan Witmer
9a8fcf8f99
Merge pull request #45 from github/fletchto99/kv-increment
...
kv: Add increment functionality
2019-08-26 15:10:20 -06:00
Nathan Witmer
f146ac39b1
Bump version to 0.3.0 for release
2019-08-26 15:09:55 -06:00
Nathan Witmer
0bfde1c193
Typo
2019-08-26 15:07:28 -06:00
Matt Langlois
ee368182a2
We don't need to rely on client found rows
2019-08-20 01:15:55 -06:00
Matt Langlois
b4d806828d
CLIENT_FOUND_ROWS must be set
2019-08-20 01:04:35 -06:00
Matt Langlois
068036346b
Style fix
2019-08-19 18:22:05 -06:00
Matt Langlois
602b685258
Ensure client found rows is set
2019-08-19 18:20:51 -06:00
Matt Langlois
364fa0135e
Add some test utils
2019-08-19 17:58:20 -06:00
Matt Langlois
89cb44e902
Move found rows check to helper
2019-08-19 12:54:03 -06:00
Matt Langlois
3100480159
Add another test for existing values
2019-08-15 16:33:53 -06:00
Matt Langlois
e81af4f92e
Add the ability to set the expires only if inserting
2019-08-15 16:31:53 -06:00
Matt Langlois
e4b5306b0c
Properly check time
2019-08-15 02:04:10 -06:00
Matt Langlois
93c809af88
add some more tests and fix a typo
2019-08-15 02:02:29 -06:00
Matt Langlois
54ae1b9b3e
Add test to ensure increment throws error when db is down
2019-08-14 11:31:25 -06:00
Matt Langlois
6ab089e35c
Use key and expires_at as value
2019-08-14 11:10:33 -06:00
Matt Langlois
4ae62fc9c0
Various fixes
2019-08-14 10:58:52 -06:00
Matt Langlois
9f66dd85fc
Add mttl method
2019-08-14 10:48:19 -06:00
Matt Langlois
436616fd00
Better error handling
2019-08-14 10:42:11 -06:00
Matt Langlois
91bf289e43
Better validation
2019-08-14 10:35:32 -06:00
Matt Langlois
524b25e218
Better validations
2019-08-14 10:34:08 -06:00
Matt Langlois
7160ae7950
Fix for CI
2019-08-14 10:19:59 -06:00
Matt Langlois
47553e8119
Use ruby's time so we're compatable with things like timecop
2019-08-12 18:47:34 -06:00
Matt Langlois
c0f80a323a
Support for apps using older versions of mysql2
2019-08-12 16:15:55 -06:00
Matt Langlois
d768d8f058
Namespace fix
2019-08-12 16:04:26 -06:00
Matt Langlois
feb89d8c5d
Ensure value is not 0
2019-08-12 15:57:52 -06:00
Matt Langlois
e66a3545d2
More thorough checking
2019-08-05 19:37:45 -07:00
Matt Langlois
4fd5c141cb
more fixes
2019-08-05 19:27:19 -07:00
Matt Langlois
60a96a1c5e
Better ordering of conditions
2019-08-05 19:21:31 -07:00
Matt Langlois
db87572959
set expires default value
2019-08-05 19:18:02 -07:00
Matt Langlois
271ff007bc
Revert "Use the argument - not a static value"
...
This reverts commit 54dd97fef5
.
2019-08-05 19:16:28 -07:00
Matt Langlois
54dd97fef5
Use the argument - not a static value
2019-08-05 19:08:35 -07:00
Matt Langlois
28d00e8fed
prioritize the insert check
2019-08-05 19:00:40 -07:00
Matt Langlois
1a5789b560
First pass at commenting
2019-08-05 18:33:32 -07:00
Matt Langlois
08208248f8
Parameter checking
2019-08-05 18:16:40 -07:00
Matt Langlois
b8b6ad9cee
Increment multiple using the default value
2019-08-05 18:08:25 -07:00
Matt Langlois
00ec9a6454
Last insert id is not set on an update
2019-08-02 15:39:03 -06:00
Matt Langlois
88ef0e0dce
Initial pass at adding an incrmenet function
2019-08-01 16:26:56 -06:00
Nathan Witmer
d6688dd8d3
Bump version to 0.2.11
2019-07-25 15:23:02 -06:00
Nathan Witmer
ed59cbcfce
Merge pull request #44 from github/now
...
kv: Pass current time into queries
2019-07-25 15:21:59 -06:00
Ben Toews
6a371cc765
add configuration for use_local_time
...
This instructs KV to use Ruby's `Time.now` instead of MySQL's `NOW()` function.
This keeps the default behavior of using MySQL's time.
2019-07-23 11:56:42 -06:00
Ben Toews
e4e6e117c3
kv: test that it works with timecop
2019-06-25 11:01:58 -06:00
Ben Toews
03b2142074
kv: pass current time into queries so Timecop might work
2019-06-25 10:22:35 -06:00
eileencodes
263cdab8a6
Bump for release
2019-05-17 16:19:08 +03:00
Eileen M. Uchitelle
7630ebbb08
Merge pull request #43 from github/fix-binary-encoding-and-bundler
...
Fix binary encoding and bundler
2019-05-17 16:17:32 +03:00
eileencodes
c86055cf52
Install a version of bundler lower than 2.0
...
We are testing against older versions of Ruby so we can't use bundler
2.0 yet. I took this recommended travis change from the travis
documentation at https://docs.travis-ci.com/user/languages/ruby/ .
2019-05-16 15:41:58 +03:00