pattern_query_helper 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pattern_query_helper/version.rb +1 -1
- data/lib/pattern_query_helper.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ed2ba55f42fcddaedda67af2615b14b97fd35e
|
4
|
+
data.tar.gz: 4c523ba2e50d29f74618ff819b78224d24006f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3557ac52ea137c52776f03966153cbaa1fa46feccadbe0d4cd3c8b4a0c8c8a2e4d9a0c701864289b24bccc0101ba132ccf65c2b1771a078913989baf88f27d5
|
7
|
+
data.tar.gz: b3cc2a06421888079f0ccc2a3681db9b3320644b4046545aa31ec8f54df7384e696c8cffd8a1fef91ee4b0fa937ba396162cea283f182656c03f199dd4c207c1
|
data/Gemfile.lock
CHANGED
data/lib/pattern_query_helper.rb
CHANGED
@@ -6,6 +6,10 @@ require "pattern_query_helper/sorting"
|
|
6
6
|
require "pattern_query_helper/sql"
|
7
7
|
|
8
8
|
module PatternQueryHelper
|
9
|
+
PAGINATED_QUERY = "paginated"
|
10
|
+
SINGLE_RECORD_QUERY = "single_record"
|
11
|
+
COMPLETE_QUERY = "all"
|
12
|
+
|
9
13
|
def self.run_sql_query(model, query, query_params, query_helpers, query_type)
|
10
14
|
case query_type
|
11
15
|
when "single_record"
|