rails-pg-extras 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/rails-pg-extras/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3306ddaeabad3f9e9b82a97fe044121a1df8924e092b6087625a606af0c198df
|
4
|
+
data.tar.gz: 1ab601c34fbe458a9e0b09de4c15b1405fe5d3aa77f9cafd0dd3c37472f39af2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298c4fd79dc18eab15c1c9e05e7676f5533d686052e4b189cf5da4f53b524b85d68fa4a4ef0c694d026fdaabe72fa28b1a0bee4507bde510c97b8f6a2bf877df
|
7
|
+
data.tar.gz: 543fd9fe51a0f9143a3202639c91405f9669fe721c8946c5598e0e9655ba13ecec1d8ce93b50587f005c3323e050839e85fd30a337ddf3b7106ebc017b263a79
|
data/README.md
CHANGED
@@ -78,6 +78,13 @@ RailsPGExtras.cache_hit(in_format: :raw) =>
|
|
78
78
|
#<PG::Result:0x00007f75777f7328 status=PGRES_TUPLES_OK ntuples=2 nfields=2 cmd_tuples=2>
|
79
79
|
```
|
80
80
|
|
81
|
+
Some methods accept an optional `args` param allowing you to customize queries:
|
82
|
+
|
83
|
+
```ruby
|
84
|
+
RailsPGExtras.long_running_queries(args: { threshold: "200 milliseconds" })
|
85
|
+
|
86
|
+
```
|
87
|
+
|
81
88
|
## Available methods
|
82
89
|
|
83
90
|
### `cache_hit`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-pg-extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pawurb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-pg-extras
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|