pg_sql_caller 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pg_sql_caller/base.rb +3 -2
- data/lib/pg_sql_caller/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23e2a1abd27915a70c5b94e1d58cc4cf31dbc7e09fd5a547e9d0920b2dd3a6d
|
4
|
+
data.tar.gz: 3d7ebae5a4662ae6cbeee8fc7e8d3abeba142fcc2987477906fafcf5474982d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 224ee54d583c10f9b4143f3814b7dc9e387e9ef27065c89d0c05ba85499b49a2f854e6065d74bb5fc96ff94600c7cd74abe0c70ec02c2a5924937546eb99c3af
|
7
|
+
data.tar.gz: 31e0cb830987de3bef4574b73de6c3b04a75e535c3f994d40e650ed7f47d3e45b22ed0091f4d31caac7e68ceba5ebdadd4454d679117a4636a279eceae480e85
|
data/lib/pg_sql_caller/base.rb
CHANGED
@@ -53,6 +53,7 @@ module PgSqlCaller
|
|
53
53
|
|
54
54
|
delegate(
|
55
55
|
*CONNECTION_SQL_METHODS,
|
56
|
+
:connection,
|
56
57
|
:transaction_open?,
|
57
58
|
:select_all_serialized,
|
58
59
|
:select_value_serialized,
|
@@ -72,6 +73,8 @@ module PgSqlCaller
|
|
72
73
|
|
73
74
|
define_sql_methods(*CONNECTION_SQL_METHODS)
|
74
75
|
|
76
|
+
delegate :connection, to: :model_class
|
77
|
+
|
75
78
|
def transaction_open?
|
76
79
|
connection.send(:transaction_open?)
|
77
80
|
end
|
@@ -140,8 +143,6 @@ module PgSqlCaller
|
|
140
143
|
|
141
144
|
private
|
142
145
|
|
143
|
-
delegate :connection, to: :model_class
|
144
|
-
|
145
146
|
def deserialize_result(result, column_name, raw_value)
|
146
147
|
column_type = result.column_types[column_name]
|
147
148
|
return raw_value if column_type.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_sql_caller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Talakevich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.1.6
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Postgresql Sql Caller for ActiveRecord
|