pg_saurus 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e34851f56966751c37812d080ed193b3423044b8195b6b719a5e694a4079774
|
|
4
|
+
data.tar.gz: 30ec47321e4d6216016b16b3c322d176175e11b43a675a866cf33654a4102e9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d961c60aea3f5f0c12d5b7fa8db0829bfae06a89c25f26352dc4be834b8e180bc78fed0079355f425324e4a7278b41e6a751069008044b1556596999b7eec961
|
|
7
|
+
data.tar.gz: 98fdf87d1e1e084e6b2dddd90d74f01c08a22e2e6a9322a755dab3e3f339ad516312a257a6337d20a733425070eccf0bf58fe9c1d4eaf51da1c4ac1ebec95951
|
|
@@ -13,6 +13,7 @@ module PgSaurus::ConnectionAdapters::AbstractAdapter::SchemaMethods
|
|
|
13
13
|
super(*extract_table_options(table_name, options))
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
# Extract the table-specific options for the given table name from the options.
|
|
16
17
|
def extract_table_options(table_name, options)
|
|
17
18
|
options = options.dup
|
|
18
19
|
schema_name = options.delete(:schema)
|
|
@@ -15,7 +15,7 @@ module PgSaurus::SchemaDumper::FunctionMethods
|
|
|
15
15
|
# Writes out a command to create each detected function.
|
|
16
16
|
def dump_functions(stream)
|
|
17
17
|
@connection.functions.each do |function|
|
|
18
|
-
statement = " create_function '#{function.name}',
|
|
18
|
+
statement = " create_function '#{function.name}', '#{function.returning}', <<-FUNCTION_DEFINITION.gsub(/^[\s]{4}/, ''), volatility: :#{function.volatility}"
|
|
19
19
|
statement << "\n#{function.definition.split("\n").map{|line| " #{line}" }.join("\n")}"
|
|
20
20
|
statement << "\n FUNCTION_DEFINITION\n\n"
|
|
21
21
|
|
data/lib/pg_saurus/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pg_saurus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Potapov Sergey
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2022-
|
|
16
|
+
date: 2022-07-09 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: pg
|
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
298
298
|
- !ruby/object:Gem::Version
|
|
299
299
|
version: '0'
|
|
300
300
|
requirements: []
|
|
301
|
-
rubygems_version: 3.0.
|
|
301
|
+
rubygems_version: 3.0.8
|
|
302
302
|
signing_key:
|
|
303
303
|
specification_version: 4
|
|
304
304
|
summary: ActiveRecord extensions for PostgreSQL.
|