pg 1.1.0.pre20180730144600-x86-mingw32 → 1.1.0.pre20180730171000-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gems +6 -0
- data/.hgignore +21 -0
- data/.hgsigs +29 -0
- data/.hgtags +36 -0
- data/.hoerc +2 -0
- data/.irbrc +23 -0
- data/.pryrc +23 -0
- data/.tm_properties +21 -0
- data/.travis.yml +41 -0
- data/Gemfile +2 -0
- data/Manifest.txt +2 -65
- data/Rakefile +1 -0
- data/appveyor.yml +50 -0
- data/certs/ged.pem +26 -0
- data/ext/extconf.rb +0 -0
- data/lib/2.0/pg_ext.so +0 -0
- data/lib/2.1/pg_ext.so +0 -0
- data/lib/2.2/pg_ext.so +0 -0
- data/lib/2.3/pg_ext.so +0 -0
- data/lib/2.4/pg_ext.so +0 -0
- data/lib/2.5/pg_ext.so +0 -0
- data/lib/libpq.dll +0 -0
- data/lib/pg.rb +1 -1
- data/lib/pg/binary_decoder.rb +22 -0
- data/lib/pg/connection.rb +0 -0
- data/lib/pg/tuple.rb +30 -0
- data/misc/openssl-pg-segfault.rb +31 -0
- data/misc/postgres/History.txt +9 -0
- data/misc/postgres/Manifest.txt +5 -0
- data/misc/postgres/README.txt +21 -0
- data/misc/postgres/Rakefile +21 -0
- data/misc/postgres/lib/postgres.rb +16 -0
- data/misc/ruby-pg/History.txt +9 -0
- data/misc/ruby-pg/Manifest.txt +5 -0
- data/misc/ruby-pg/README.txt +21 -0
- data/misc/ruby-pg/Rakefile +21 -0
- data/misc/ruby-pg/lib/ruby/pg.rb +16 -0
- data/pg.gemspec +61 -0
- data/sample/array_insert.rb +20 -0
- data/sample/async_api.rb +106 -0
- data/sample/async_copyto.rb +39 -0
- data/sample/async_mixed.rb +56 -0
- data/sample/check_conn.rb +21 -0
- data/sample/copydata.rb +71 -0
- data/sample/copyfrom.rb +81 -0
- data/sample/copyto.rb +19 -0
- data/sample/cursor.rb +21 -0
- data/sample/disk_usage_report.rb +177 -0
- data/sample/issue-119.rb +94 -0
- data/sample/losample.rb +69 -0
- data/sample/minimal-testcase.rb +17 -0
- data/sample/notify_wait.rb +72 -0
- data/sample/pg_statistics.rb +285 -0
- data/sample/replication_monitor.rb +222 -0
- data/sample/test_binary_values.rb +33 -0
- data/sample/wal_shipper.rb +434 -0
- data/sample/warehouse_partitions.rb +311 -0
- data/spec/helpers.rb +0 -0
- data/spec/pg/connection_spec.rb +0 -0
- data/spec/pg/connection_sync_spec.rb +41 -0
- data/spec/pg/tuple_spec.rb +266 -0
- metadata +69 -25
- metadata.gz.sig +0 -0
- data/ChangeLog +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff52f06e0d110d72ce9e820faf408e3f47fc2268bf9b27716d167098ace9b451
|
4
|
+
data.tar.gz: 96eb7763843af3c3e4df469df4f6f90b5de8e186ea4652c5a7badd0a0069915d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 280f7050cd6d681b9a06f29ca2f07b711278766c4147f7af6e66467fd114767d52648a4b461f7192d58d470b4ff4421cd6fbdfc20ccbcee776c3831ded7f4de8
|
7
|
+
data.tar.gz: f1fb1345d01f4836ba93cda710a280e0cd1a7f26db2028113aa670016c63eb62e060269ca3a507ab8265ed26975bd6b10bb611a2a006ada2a4c157b5457af098
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gems
ADDED
data/.hgignore
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
ChangeLog$
|
2
|
+
commit-msg\.txt$
|
3
|
+
lowrite\.txt
|
4
|
+
\.(diff|patch|test_symlink|lock|ruby-(gemset|version))$
|
5
|
+
\.(s?o|log|bundle)$
|
6
|
+
\.DS_Store
|
7
|
+
\.orig$
|
8
|
+
^doc/
|
9
|
+
^ext/conftest\.dSYM
|
10
|
+
^ext/extconf\.h
|
11
|
+
^ext/Makefile
|
12
|
+
^pkg/
|
13
|
+
^tmp/
|
14
|
+
^tmp_test_specs/
|
15
|
+
~$
|
16
|
+
build/
|
17
|
+
misc/ruby-pg/pkg
|
18
|
+
misc/postgres/pkg
|
19
|
+
^lib/.*\.dll$
|
20
|
+
\.rvmrc$
|
21
|
+
vendor/
|
data/.hgsigs
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
872063e42b129af10539f73b3c083ad8a031f961 0 iEYEABECAAYFAkuKoCoACgkQ+zlz4UKpE6QzewCgrFcSsAwju/KpZ8myuWexlcSbe04AmwWCbf4HM95tDXdFvsvzeegPg8AS
|
2
|
+
3993015a841e43c9cd9d1321819cbf5e74264f1d 0 iEYEABECAAYFAkz2ycMACgkQ+zlz4UKpE6SYjQCgi/1Ik2rntK2dU93Hb91wYh0Yv4sAoKxEXVuXaEIAiwB4vSQ/7JQGIBzM
|
3
|
+
230ea3e68db2360548097542c4856dec4c3cd97a 0 iEYEABECAAYFAk03CpAACgkQ+zlz4UKpE6SPAgCfbRwKmAgHTmrudSoC09c37Tuyff0AnRHrSaqKhiCO7KlX5UJq6x0ttoKH
|
4
|
+
24aa7899c6966ce349c8e4f2a87b17c3e943ff56 0 iEYEABECAAYFAk2s1wQACgkQ+zlz4UKpE6SkLQCdHOS5yxoUFguEo885HkDyOZg4Y7wAoMVofhwOUHVQ6djXr0hgAmahI1lW
|
5
|
+
19b551f972e27dcfa281b92914e2a98661243206 0 iEYEABECAAYFAk7f51sACgkQ+zlz4UKpE6RkYACg0WZjt1crbi72DQYs3kYKSYRflNYAnA80+VVwmMUQiWuFuQ+7gbiUPCyY
|
6
|
+
f72b14d349bf385c769aacfddbea7a0e60ff5e9e 0 iEYEABECAAYFAk8CFCIACgkQ+zlz4UKpE6QbYACgyLQwHPQH50sGVgzTD3y13XKwi38AoIrF5zSOiMXAeL+sk++iwDYV4ddW
|
7
|
+
f3dfdb6929b70ddd3bb952757bdfb199e6916245 0 iEYEABECAAYFAk8Di+MACgkQ+zlz4UKpE6TVvwCg+ibuW22lRdnOIrRF2V4am7b4YxYAn0bDEnP93JX6qKAaU8kcoCrTKDXp
|
8
|
+
b67309d3ccf2f9de56535e01f58c7af994426827 0 iEYEABECAAYFAk8iJKkACgkQ+zlz4UKpE6SjUQCgpItY5hW5NyVkfL5+nkRhJqaetQMAoJQQkNPL2jQLgJREfj3PtMBbn2VG
|
9
|
+
0e7f0c2451e55855b4a90efce8db0cafbf04b26f 0 iEYEABECAAYFAk8kb0cACgkQ+zlz4UKpE6RpxgCfQDV3zq2N+zle1XLKoXGMr7EK19IAnR3llz7WPf2j9lqXdZjw4xtl0XBk
|
10
|
+
9c262b875047f9acfedb63396a262ab5a5b101ca 0 iEYEABECAAYFAk80EvkACgkQ+zlz4UKpE6SUHQCeJuJMb8+k8ynIDPSmcKHL/a5gD6AAoPXMns9HF2c3XwtS1CMRf6rcZp3e
|
11
|
+
1ba641824000abbf1b22000772815c24e9b5f6d9 0 iEYEABECAAYFAk84LSUACgkQ+zlz4UKpE6RlPQCgiGZbYJFbeWEAdehVUrIZdU7sRe4AoOgESbvEWynP4X0OKbvdC9rLchYl
|
12
|
+
41e071bdd6ed970887d4ed4da59fdfa62003c39e 0 iEYEABECAAYFAk9FXikACgkQ+zlz4UKpE6TB8ACgt/VSo/kJMg9UVLKd5UUPBPjbgOIAn0DJuOla9GF85mW74sEkCOqE6Ada
|
13
|
+
a45710f8db303c400200017242589562936fcf1b 0 iEYEABECAAYFAk/l/kgACgkQ+zlz4UKpE6QCkwCg049BpW4kSvaKuICyvKokeoXbNiAAoPWAaiDuK6xjZhqGSuuGVWMmCRwk
|
14
|
+
52d22b060501ab90a89b3a758aca8ce70ad05231 0 iEYEABECAAYFAlBDfn8ACgkQ+zlz4UKpE6R3GACgzLiZ+fyM4Hx8/Qp9fyWF+mHk4FQAn3P3Y06AHadVvKwyksrAgKk/33LV
|
15
|
+
384fcbc92366ca0108b6c0984d861ffef2d38570 0 iEYEABECAAYFAlFRsM4ACgkQ+zlz4UKpE6TYXgCgksacYvWJ5dhx9oYFRR+oSH6wPgwAoJ3QO01zfiDbBz6Z9Mxy7tNi3jx6
|
16
|
+
0bfb6ff650be2d003af3d0fc6c75be16369605e1 0 iEYEABECAAYFAlFjCYkACgkQ+zlz4UKpE6RldACg77Rp2I4vYUXpFakUrYq6uSfPLLQAn266JL6CiQG44cSroW+Mgz4CZgJn
|
17
|
+
4e0606f5f5aab87855860a3eeaf4c9eaaea77f09 0 iEYEABECAAYFAlHuizwACgkQ+zlz4UKpE6QphACg4FNFwvVju9wk6PC6vwkY8cZRtvkAn1nDR0pbto9xMdMUqhJxOc5Dqisr
|
18
|
+
eed93df350a6cc657d5151bd3aa29ab427fba7cc 0 iEYEABECAAYFAlI3Sy4ACgkQ+zlz4UKpE6ShLQCffDunkSEo5TCnzCx8PjVF9jetDxYAn02ZCfDJ2UPgojF+gjhHCGk9haFq
|
19
|
+
22d57e3a2b378a34675982a77e6daa643f38fa6e 0 iEYEABECAAYFAlKyO9QACgkQ+zlz4UKpE6QO/wCfWabZRMDkk/vNME1LK1cHCp4oOtMAoORYSAU8OTOxjhPW3IGDMFShHKHv
|
20
|
+
c519766e3ec9a60b1960dcb008f01434f98a17b2 0 iEYEABECAAYFAlSoTtUACgkQ+zlz4UKpE6TIoQCg2nBKrFlaMtD1P4H1KuDxQJBsDkQAniIdmVBVhWvBU+pUfMHhPRBY+puR
|
21
|
+
ba5aff64b5cbe818ddabaac924d0bee6ab27f1b0 0 iEYEABECAAYFAlSq+v4ACgkQ+zlz4UKpE6SfvwCg8cL68fxxt7k/yzTV7hLNyOovci0AnAoPXmKEYaoyWehwMUpxOitaVRwf
|
22
|
+
7d31b04e79134d276c1e8a3a64ee35b7002da1ef 0 iQIcBAABAgAGBQJVVO4yAAoJEGE7GvLhImG9r6cP/jMU8jKHKbFiyRLCz/IX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sbU+vKlCSMjNCl1wpc1MZ3obh2I+gjjqN5n+3QPNrZC+XMLPlfC54H6bsbuPo9r22Mln574RmX7W2ckc0OHWzNaCDzYLPI7NvnTxyLsVtM7lUvdkuK1YgOAqZE5uK62Dzo8F8Ou2GNUMRH+nsVgCEgT4liyYhSL3NoNlE+h4RAYnvkkBt8NpBSB661wNBZCkL2DxSzidwE8DT20gnhb5ngiRwNevP0DbUnZIs4CUxzkKgnZdyOL8cTftAGj/XnYxm0I9+rUBl0lfJrLhlw5sCtc+vMUHarF2g5CCyvT/dpeACkjOArDj7o3rgqEvwX5zoRUeaUbVv8k7CcJ1uu5R0G+5VLLs9o/a6ilC37tQiGkl4zDJtD7G3bQs4hxYNVvZEmj/SrebNeOjJkouNsIKWJ2tfVnAyI5hZt4+jNZFET8RPAsTvgOLI5u17zU90O4KS7RLuzcT8TxLb55CkKSKsn1qbn8WdObZsoOvk4VQA9Dek7ZH8ZY9v8KtHAzDH+ip5xc01doEJziybz41fibTVma5rgbvnNXXCMqPRRkkSE+k7ogLgC6R3kCoqZUu1V6qoMkPh9s3WzQoSBqGL17l9RBCTh2o2QriBxZNPS2jG+AUrFOKGusc9M8c1AcEO1Z2tbVZBEzKssOSQ22CGpO13ZVzKFJcs601qgw=
|
data/.hgtags
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
7fbe4187e9e53e58baf6cd7c1c21e3a3c5b920e5 0.8.0
|
2
|
+
da726282493c57b4ef8e5be1a21e98cc028fda4c 0.9.0
|
3
|
+
1822a169c4fecac402335a64a484b5dc053994a3 0.10.0
|
4
|
+
1822a169c4fecac402335a64a484b5dc053994a3 v0.10.0
|
5
|
+
1822a169c4fecac402335a64a484b5dc053994a3 0.10.0
|
6
|
+
0000000000000000000000000000000000000000 0.10.0
|
7
|
+
de10b5d8e4429d22790976ec4de89f209e882906 v0.10.1
|
8
|
+
3cb8e57c6c80737c714dd7607a144ef12074c4fe v0.11.0
|
9
|
+
da726282493c57b4ef8e5be1a21e98cc028fda4c v0.9.0
|
10
|
+
7fbe4187e9e53e58baf6cd7c1c21e3a3c5b920e5 v0.8.0
|
11
|
+
b767401684d8a4051230874b0686a54537b10e2f v0.12.0
|
12
|
+
21f84883e5c206a3f2890905af68e08a0046ba1c v0.12.1
|
13
|
+
88bd78632f86f696dd3fa8904c1d3180216378cc v0.12.2
|
14
|
+
7b2da7e0815cce834cd60f9747209923952876ec v0.13.0
|
15
|
+
9e60b2c477cde450a088161ca8f3d72b52531aaf v0.13.1
|
16
|
+
c79cd308363d614f7ba32fd86294c9aa3117c361 v0.13.2
|
17
|
+
634e0a42a1010fc1dcd279fb28506873a47090c1 v0.14.0
|
18
|
+
2d83ce956f971c3aeb145c9ad68f426e78b852dd v0.14.1
|
19
|
+
065fd1f0e9dda58557de0efb2deb138e93ba7632 v0.15.0
|
20
|
+
4692c20bcbdeadd8a31283e234464c6e1c43765d v0.15.1
|
21
|
+
def8f41a76726cf7239ff6dbaa2828a881f93451 v0.16.0
|
22
|
+
30da9c169efc3985ad0464936483c229faba0e33 v0.17.0
|
23
|
+
78846e47d87b7ed5bb7397116070692b1cfa87d7 v0.17.1
|
24
|
+
cfb2bfc0f66181e67768c4313bcce473292a0825 v0.18.0
|
25
|
+
f97dd6cb4f34da6a62c4339887249115c7c25b9c v0.18.1
|
26
|
+
22a361201fd1d387d59a066b179124694a446f38 v0.18.2
|
27
|
+
01c42c68797e724507b76056b98981cb30748a36 v0.18.3
|
28
|
+
94ef4830540d8fa74b8912118fb8065f4a6a3563 v0.18.4
|
29
|
+
94ef4830540d8fa74b8912118fb8065f4a6a3563 v0.18.4
|
30
|
+
0000000000000000000000000000000000000000 v0.18.4
|
31
|
+
0000000000000000000000000000000000000000 v0.18.4
|
32
|
+
f61127650cd00a1154c591dcde85ebac01f2be9f v0.18.4
|
33
|
+
bd2aaa2c5797de78435977a1c60e450d6f22811b v0.19.0
|
34
|
+
e5eb92cca97abc0c6fc168acfad993c2ad314589 v0.20.0
|
35
|
+
deae742eacfa985bd20f47a12a8fee6ce2e0447c v0.21.0
|
36
|
+
9a388d1023ec145cb00e6e16f3a8cabd3cc81d16 v1.0.0
|
data/.hoerc
ADDED
data/.irbrc
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/ruby -*- ruby -*-
|
2
|
+
|
3
|
+
BEGIN {
|
4
|
+
require 'pathname'
|
5
|
+
require 'rbconfig'
|
6
|
+
|
7
|
+
basedir = Pathname.new( __FILE__ ).dirname.expand_path
|
8
|
+
libdir = basedir + "lib"
|
9
|
+
|
10
|
+
puts ">>> Adding #{libdir} to load path..."
|
11
|
+
$LOAD_PATH.unshift( libdir.to_s )
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
# Try to require the 'pg' library
|
16
|
+
begin
|
17
|
+
$stderr.puts "Loading pg..."
|
18
|
+
require 'pg'
|
19
|
+
rescue => e
|
20
|
+
$stderr.puts "Ack! pg library failed to load: #{e.message}\n\t" +
|
21
|
+
e.backtrace.join( "\n\t" )
|
22
|
+
end
|
23
|
+
|
data/.pryrc
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/ruby -*- ruby -*-
|
2
|
+
|
3
|
+
BEGIN {
|
4
|
+
require 'pathname'
|
5
|
+
require 'rbconfig'
|
6
|
+
|
7
|
+
basedir = Pathname.new( __FILE__ ).dirname.expand_path
|
8
|
+
libdir = basedir + "lib"
|
9
|
+
|
10
|
+
puts ">>> Adding #{libdir} to load path..."
|
11
|
+
$LOAD_PATH.unshift( libdir.to_s )
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
# Try to require the 'pg' library
|
16
|
+
begin
|
17
|
+
$stderr.puts "Loading pg..."
|
18
|
+
require 'pg'
|
19
|
+
rescue => e
|
20
|
+
$stderr.puts "Ack! pg library failed to load: #{e.message}\n\t" +
|
21
|
+
e.backtrace.join( "\n\t" )
|
22
|
+
end
|
23
|
+
|
data/.tm_properties
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Settings
|
2
|
+
projectDirectory = "$CWD"
|
3
|
+
windowTitle = "${CWD/^.*\///} «$TM_DISPLAYNAME»"
|
4
|
+
excludeInFileChooser = {$exclude,.hg}
|
5
|
+
exclude = {$exclude,tmp,tmp_test_specs}
|
6
|
+
|
7
|
+
TM_MAKE = 'rake'
|
8
|
+
TM_MAKE_FILE = '${projectDirectory}/Rakefile'
|
9
|
+
|
10
|
+
[ source ]
|
11
|
+
softTabs = false
|
12
|
+
tabSize = 4
|
13
|
+
|
14
|
+
[ source.ruby ]
|
15
|
+
softTabs = false
|
16
|
+
tabSize = 4
|
17
|
+
|
18
|
+
[ source.ruby.rspec ]
|
19
|
+
softTabs = false
|
20
|
+
tabSize = 4
|
21
|
+
|
data/.travis.yml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
sudo: required
|
2
|
+
services:
|
3
|
+
- docker
|
4
|
+
language: ruby
|
5
|
+
rvm:
|
6
|
+
- "2.2"
|
7
|
+
- "2.4.2"
|
8
|
+
- "2.5"
|
9
|
+
- ruby-head
|
10
|
+
env:
|
11
|
+
- "PGVERSION=10.0-1-linux-x64 PATH=\"/opt/PostgreSQL/10/bin:$PATH\""
|
12
|
+
- "PGVERSION=9.3.19-1-linux-x64 PATH=\"/opt/PostgreSQL/9.3/bin:$PATH\""
|
13
|
+
- "PGCROSS=true"
|
14
|
+
matrix:
|
15
|
+
# Test cross compilation only with 2.4
|
16
|
+
exclude:
|
17
|
+
- rvm: "2.2"
|
18
|
+
env: "PGCROSS=true"
|
19
|
+
- rvm: "2.5"
|
20
|
+
env: "PGCROSS=true"
|
21
|
+
- rvm: ruby-head
|
22
|
+
env: "PGCROSS=true"
|
23
|
+
allow_failures:
|
24
|
+
- rvm: ruby-head
|
25
|
+
fast_finish: true
|
26
|
+
before_install:
|
27
|
+
- gem install bundler
|
28
|
+
- bundle install
|
29
|
+
# Download and install postgresql version to test against in /opt (for non-cross compile only)
|
30
|
+
- |
|
31
|
+
if [ -z "$PGCROSS" ]; then
|
32
|
+
wget http://get.enterprisedb.com/postgresql/postgresql-$PGVERSION.run && \
|
33
|
+
chmod +x postgresql-$PGVERSION.run && \
|
34
|
+
sudo ./postgresql-$PGVERSION.run --extract-only 1 --mode unattended
|
35
|
+
fi
|
36
|
+
script: |
|
37
|
+
if [ -z "$PGCROSS" ]; then
|
38
|
+
rake compile test
|
39
|
+
else
|
40
|
+
rake gem:windows
|
41
|
+
fi
|
data/Gemfile
ADDED
data/Manifest.txt
CHANGED
@@ -1,67 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
ChangeLog
|
4
|
-
Contributors.rdoc
|
5
|
-
History.rdoc
|
6
|
-
LICENSE
|
7
|
-
Manifest.txt
|
8
|
-
POSTGRES
|
9
|
-
README-OS_X.rdoc
|
10
|
-
README-Windows.rdoc
|
11
|
-
README.ja.rdoc
|
1
|
+
# Manifest is built per Rakefile as part of `rake gem`.
|
2
|
+
# These files are required to satisfy Hoe:
|
12
3
|
README.rdoc
|
13
|
-
Rakefile
|
14
|
-
Rakefile.cross
|
15
|
-
ext/errorcodes.def
|
16
|
-
ext/errorcodes.rb
|
17
|
-
ext/errorcodes.txt
|
18
|
-
ext/extconf.rb
|
19
|
-
ext/gvl_wrappers.c
|
20
|
-
ext/gvl_wrappers.h
|
21
|
-
ext/pg.c
|
22
|
-
ext/pg.h
|
23
|
-
ext/pg_binary_decoder.c
|
24
|
-
ext/pg_binary_encoder.c
|
25
|
-
ext/pg_coder.c
|
26
|
-
ext/pg_connection.c
|
27
|
-
ext/pg_copy_coder.c
|
28
|
-
ext/pg_errors.c
|
29
|
-
ext/pg_result.c
|
30
|
-
ext/pg_text_decoder.c
|
31
|
-
ext/pg_text_encoder.c
|
32
|
-
ext/pg_type_map.c
|
33
|
-
ext/pg_type_map_all_strings.c
|
34
|
-
ext/pg_type_map_by_class.c
|
35
|
-
ext/pg_type_map_by_column.c
|
36
|
-
ext/pg_type_map_by_mri_type.c
|
37
|
-
ext/pg_type_map_by_oid.c
|
38
|
-
ext/pg_type_map_in_ruby.c
|
39
|
-
ext/util.c
|
40
|
-
ext/util.h
|
41
|
-
ext/vc/pg.sln
|
42
|
-
ext/vc/pg_18/pg.vcproj
|
43
|
-
ext/vc/pg_19/pg_19.vcproj
|
44
4
|
lib/pg.rb
|
45
|
-
lib/pg/basic_type_mapping.rb
|
46
|
-
lib/pg/coder.rb
|
47
|
-
lib/pg/connection.rb
|
48
|
-
lib/pg/constants.rb
|
49
|
-
lib/pg/exceptions.rb
|
50
|
-
lib/pg/result.rb
|
51
|
-
lib/pg/text_decoder.rb
|
52
|
-
lib/pg/text_encoder.rb
|
53
|
-
lib/pg/type_map_by_column.rb
|
54
|
-
spec/data/expected_trace.out
|
55
|
-
spec/data/random_binary_data
|
56
|
-
spec/helpers.rb
|
57
|
-
spec/pg/basic_type_mapping_spec.rb
|
58
|
-
spec/pg/connection_spec.rb
|
59
|
-
spec/pg/result_spec.rb
|
60
|
-
spec/pg/type_map_by_class_spec.rb
|
61
|
-
spec/pg/type_map_by_column_spec.rb
|
62
|
-
spec/pg/type_map_by_mri_type_spec.rb
|
63
|
-
spec/pg/type_map_by_oid_spec.rb
|
64
|
-
spec/pg/type_map_in_ruby_spec.rb
|
65
|
-
spec/pg/type_map_spec.rb
|
66
|
-
spec/pg/type_spec.rb
|
67
|
-
spec/pg_spec.rb
|
data/Rakefile
CHANGED
@@ -55,6 +55,7 @@ $hoespec = Hoe.spec 'pg' do
|
|
55
55
|
self.extra_rdoc_files = Rake::FileList[ '*.rdoc' ]
|
56
56
|
self.extra_rdoc_files.include( 'POSTGRES', 'LICENSE' )
|
57
57
|
self.extra_rdoc_files.include( 'ext/*.c' )
|
58
|
+
self.spec_extras[:files] = `hg manifest || git ls-files`.split
|
58
59
|
self.license 'BSD-3-Clause'
|
59
60
|
|
60
61
|
self.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
data/appveyor.yml
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
init:
|
2
|
+
- set PATH=C:/Ruby%ruby_version%/bin;c:/Program Files/Git/cmd;c:/Windows/system32;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files/Mercurial
|
3
|
+
- set RUBYOPT=--verbose
|
4
|
+
install:
|
5
|
+
- ps: |
|
6
|
+
if ($env:RUBYDOWNLOAD -ne $null) {
|
7
|
+
$(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-$env:RUBYDOWNLOAD.exe", "$pwd/ruby-setup.exe")
|
8
|
+
cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
|
9
|
+
}
|
10
|
+
- ruby --version
|
11
|
+
- gem --version
|
12
|
+
- gem install bundler --conservative
|
13
|
+
- bundle install
|
14
|
+
- ps: |
|
15
|
+
if ($env:PGVERSION -ne $null)
|
16
|
+
{
|
17
|
+
$(new-object net.webclient).DownloadFile('http://get.enterprisedb.com/postgresql/postgresql-' + $env:PGVERSION + '.exe', 'C:/postgresql-setup.exe')
|
18
|
+
cmd /c "C:/postgresql-setup.exe" --mode unattended --extract-only 1
|
19
|
+
}
|
20
|
+
$env:RUBY_DLL_PATH = 'C:/Program Files/PostgreSQL/' + $env:PGVER + '/bin;C:/Program Files (x86)/PostgreSQL/' + $env:PGVER + '/bin'
|
21
|
+
$env:PATH = 'C:/Program Files/PostgreSQL/' + $env:PGVER + '/bin;' + $env:PATH
|
22
|
+
$env:PATH = 'C:/Program Files (x86)/PostgreSQL/' + $env:PGVER + '/bin;' + $env:PATH
|
23
|
+
build_script:
|
24
|
+
- bundle exec rake -rdevkit compile
|
25
|
+
test_script:
|
26
|
+
- bundle exec rake test
|
27
|
+
environment:
|
28
|
+
matrix:
|
29
|
+
- ruby_version: "head"
|
30
|
+
RUBYDOWNLOAD: x64
|
31
|
+
PGVERSION: 10.0-1-windows-x64
|
32
|
+
PGVER: 10
|
33
|
+
- ruby_version: "head"
|
34
|
+
RUBYDOWNLOAD: x86
|
35
|
+
PGVERSION: 10.0-1-windows
|
36
|
+
PGVER: 10
|
37
|
+
- ruby_version: "24-x64"
|
38
|
+
PGVERSION: 10.0-1-windows-x64
|
39
|
+
PGVER: 10
|
40
|
+
- ruby_version: "24"
|
41
|
+
PGVERSION: 10.0-1-windows
|
42
|
+
PGVER: 10
|
43
|
+
- ruby_version: "22"
|
44
|
+
PGVERSION: 9.3.19-1-windows
|
45
|
+
PGVER: 9.3
|
46
|
+
- ruby_version: "22-x64"
|
47
|
+
PGVER: 9.6
|
48
|
+
matrix:
|
49
|
+
allow_failures:
|
50
|
+
- ruby_version: "head"
|
data/certs/ged.pem
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
|
3
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
4
|
+
HhcNMTcwOTI3MDAzMDQ0WhcNMTgwOTI3MDAzMDQ0WjA+MQwwCgYDVQQDDANnZWQx
|
5
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
6
|
+
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
|
7
|
+
83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
|
8
|
+
ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
|
9
|
+
TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xYP26a
|
10
|
+
4MAX2qqKX/FKXqmFO+AGsbwYTEds1mksBF3fGsFgsQWxftG8GfZQ9+Cyu2+l1eOw
|
11
|
+
cZ+lPcg834G9DrqW2zh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ICATE-----
|
data/ext/extconf.rb
CHANGED
File without changes
|
data/lib/2.0/pg_ext.so
CHANGED
Binary file
|
data/lib/2.1/pg_ext.so
CHANGED
Binary file
|
data/lib/2.2/pg_ext.so
CHANGED
Binary file
|
data/lib/2.3/pg_ext.so
CHANGED
Binary file
|
data/lib/2.4/pg_ext.so
CHANGED
Binary file
|
data/lib/2.5/pg_ext.so
CHANGED
Binary file
|
data/lib/libpq.dll
CHANGED
Binary file
|
data/lib/pg.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
module PG
|
4
|
+
module BinaryDecoder
|
5
|
+
# Convenience classes for timezone options
|
6
|
+
class TimestampUtc < Timestamp
|
7
|
+
def initialize(params={})
|
8
|
+
super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_UTC))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
class TimestampUtcToLocal < Timestamp
|
12
|
+
def initialize(params={})
|
13
|
+
super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_LOCAL))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
class TimestampLocal < Timestamp
|
17
|
+
def initialize(params={})
|
18
|
+
super(params.merge(flags: PG::Coder::TIMESTAMP_DB_LOCAL | PG::Coder::TIMESTAMP_APP_LOCAL))
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end # module PG
|
data/lib/pg/connection.rb
CHANGED
File without changes
|