sequel-search-path 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68eb94cbeaf450e1216c6d31df55200d4927adfd
|
4
|
+
data.tar.gz: 70defcebff83c90f5b80dc3f92556848b873bbf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f872305591d28fbc04f27eeaef095f72965a043e8c423c148f084199ddb3bb16217c26ed672f8046686ae3349c186076743f1486feda4e57f5ad7b336baaf3a
|
7
|
+
data.tar.gz: af14404e4fcaa575e4f829a668045274585940bcf1a321b220cec61a47a76793ec39ed0183ce44e20a1d11348e1399afc60e9b88eef2d9c1ba5559f8d6e696d4
|
@@ -49,17 +49,17 @@ module Sequel
|
|
49
49
|
end
|
50
50
|
alias :show_search_path :get_search_path
|
51
51
|
|
52
|
-
private
|
53
|
-
|
54
|
-
def schemas_key
|
55
|
-
@schemas_key ||= "sequel-search-path-#{object_id}".to_sym
|
56
|
-
end
|
57
|
-
|
58
52
|
def set_search_path
|
59
53
|
placeholders = schemas.map{'?'}.join(', ')
|
60
54
|
placeholders = "''" if placeholders.empty?
|
61
55
|
self["SET search_path TO #{placeholders}", *schemas].get
|
62
56
|
end
|
57
|
+
|
58
|
+
private
|
59
|
+
|
60
|
+
def schemas_key
|
61
|
+
@schemas_key ||= "sequel-search-path-#{object_id}".to_sym
|
62
|
+
end
|
63
63
|
end
|
64
64
|
|
65
65
|
Database.register_extension(:search_path){|db| db.extend(Sequel::SearchPath)}
|