06136312bb
regen files with never protoc ( #6 )
...
* regen files with never protoc
* rewrite import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00
Dominic Wong
2eac8ed64f
Fix cockroach store not respecting WriteTTL option ( #1943 )
...
* cockroach fixes for expiry
* cockroach should run in the background
2020-08-18 18:30:05 +01:00
Asim Aslam
1fa3ac5599
write nil when expiry is zero
2020-08-12 12:52:14 +01:00
Dominic Wong
69a53e8070
expiry can be taken from options or record ( #1928 )
2020-08-11 18:11:18 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
Dominic Wong
9dfeb98111
cockroach typo in init ( #1872 )
2020-07-27 10:16:40 +01:00
Lars Lehtonen
2b033b6495
store/cockroach: fix dropped errors ( #1796 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-06 20:14:36 +01:00
Asim Aslam
7b379bf1f1
WIP: Add metadata to store record ( #1604 )
...
* Add metadata to store record
* Add metadata to cockroach store
* add metadata to store service implementation
* fix breaking cache test
* Test/fix cockroach metadata usage
* fix store memory metadata bug
2020-06-03 09:45:08 +01:00
Asim Aslam
6a661fd08c
check if the db conn is nil before doing anything ( #1652 )
2020-05-20 14:03:38 +01:00
ben-toogood
5387f73b5d
Handle cockroach createDB error ( #1603 )
2020-05-06 10:58:14 +01:00
Asim Aslam
08a2de1ef5
Account for missing options database/table in cockroach store
2020-05-01 15:31:55 +01:00
Asim Aslam
c76a5e608d
sql fixes
2020-04-30 23:53:54 +01:00
Asim Aslam
359b8bc503
Add opts to service proto ( #1517 )
...
* Add opts to service proto
* Support database/table opts
2020-04-30 22:51:25 +01:00
Jake Sanders
2e379ca7d0
Don't break the build!
2020-04-09 12:18:02 +01:00
Jake Sanders
2659215d5e
cockroachDB doesn't support this syntax ( #1509 )
2020-04-09 12:11:24 +01:00
Jake Sanders
1e7cd8c484
Make the constraint explicit rather than inferred ( #1506 )
2020-04-08 23:52:35 +01:00
Jake Sanders
cc027d900e
Close statements, add default table if the store was not initialised through service.Init() ( #1502 )
2020-04-08 12:08:08 +01:00
Asim Aslam
4b0e27413e
add Store Close method ( #1500 )
...
* add Store Close method
* Update sync store build failure
2020-04-08 09:51:10 +01:00
Jake Sanders
71538adfdc
Explicitly set the table name during service init ( #1497 )
2020-04-07 13:00:05 +01:00
Jake Sanders
3324d140c0
Rename store Namespace / Prefix options to Database and Table ( #1492 )
...
* Rename Namespace to DB, Rename Prefix to table, Remove Suffix Option
* Rename options
* Rename options
* Add store_table option
* Table per service, not Database per service
2020-04-06 16:45:55 +01:00
Asim Aslam
e1bc0f6288
replace strings for store prefix ( #1465 )
...
Co-authored-by: ben-toogood <bentoogood@gmail.com>
2020-04-01 20:19:21 +01:00
Jake Sanders
dff98355be
Missing ; in SQL query
2020-03-24 23:49:09 +00:00
Jake Sanders
397a8638f4
Cockroach Store bugfix ( #1401 )
2020-03-24 17:16:38 +00:00
Jake Sanders
eb4d2ae6aa
Remove useless variable from cockroach store ( #1400 )
2020-03-24 15:37:30 +00:00
Jake Sanders
638c219736
Cockroach store feature completion ( #1358 )
...
* Start fixing cockroach store
* Add prefix, suffix, limit, offset for cockroachdb store
2020-03-17 16:15:23 +00:00
Jake Sanders
1b4e881d74
Rewrite the store interface ( #1335 )
...
* WIP store rewrite
* Fix memory store tests
* Store hard expiry times rather than duration!
* Clarify memory test
* Add limit to store interface
* Implement suffix option
* Don't return nils from noop store
* Fix syncmap
* Start fixing store service
* wip service and cache
* Use _ for special characters in cockroachdb namespace
* Improve cockroach namespace comment
* Use service name as default store namespace
* Fixes
* Implement Store Scope
* Start fixing etcd
* implement read and write with expiry and prefix
* Fix etcd tests
* Fix cockroach store
* Fix cloudflare interface
* Fix certmagic / cloudflare store
* comment lint
* cache isn't implemented yet
* Only prepare DB staements once
Co-authored-by: Ben Toogood <ben@micro.mu>
Co-authored-by: ben-toogood <bentoogood@gmail.com>
2020-03-12 13:41:30 +00:00
7b385bf163
minimize allocations in logger and tunnel code ( #1323 )
...
* logs alloc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* tunnel allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* try to fix tunnel
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* cache cipher for send
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-11 17:55:39 +00:00
ben-toogood
9200c70202
Replace validation error with regex for cockroach namespace ( #1270 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-03-01 22:09:06 +00:00
117f56ebf7
prune util/log and user logger ( #1237 )
...
* prune util/log and user logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* plaintext logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* add newline
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-23 13:45:20 +00:00
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-01-30 14:44:40 +03:00
shu xian
101017a29c
cockroach supports URL connection string
2020-01-29 00:47:41 +08:00
Asim Aslam
6ca298c61d
set default store, fix store options bug, add String method
2020-01-10 19:13:55 +00:00
Asim Aslam
a90a74c9e2
Change the store interface to remove variadic args ( #1095 )
2020-01-08 22:23:14 +00:00
Asim Aslam
048065fe96
support ability to set store, address and namespace via flags and env vars ( #1092 )
2020-01-08 12:11:31 +00:00
Asim Aslam
be6e8a7c78
add store to defaults ( #1086 )
2020-01-06 17:44:32 +00:00
Jake Sanders
55f5937c8b
Remove debug
2019-12-16 17:16:10 +00:00
Jake Sanders
56619f2745
Fix cockroachdb store implemetation
2019-12-16 17:11:13 +00:00
Asim Aslam
303adca500
rename postgres to cockroach
2019-12-16 15:09:59 +00:00