pg 0.11.0-x86-mingw32 → 0.12.0-x86-mingw32
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.
- data/.gemtest +0 -0
- data/ChangeLog +1647 -462
- data/Contributors.rdoc +39 -0
- data/History.rdoc +61 -0
- data/Manifest.txt +43 -0
- data/README.OS_X.rdoc +68 -0
- data/README.ja.rdoc +7 -0
- data/{README → README.rdoc} +38 -18
- data/{README.windows → README.windows.rdoc} +23 -31
- data/Rakefile +104 -318
- data/Rakefile.cross +234 -0
- data/ext/compat.c +2 -2
- data/ext/extconf.rb +10 -2
- data/ext/pg.c +223 -43
- data/ext/vc/pg.sln +26 -0
- data/ext/vc/pg_18/pg.vcproj +216 -0
- data/ext/vc/pg_19/pg_19.vcproj +209 -0
- data/lib/1.8/pg_ext.so +0 -0
- data/lib/1.9/pg_ext.so +0 -0
- data/lib/pg.rb +5 -7
- data/misc/openssl-pg-segfault.rb +31 -0
- data/sample/async_api.rb +109 -0
- data/sample/async_copyto.rb +39 -0
- data/sample/copyfrom.rb +81 -0
- data/sample/copyto.rb +19 -0
- data/sample/cursor.rb +21 -0
- data/sample/losample.rb +69 -0
- data/sample/notify_wait.rb +43 -0
- data/sample/psql.rb +1181 -0
- data/sample/psqlHelp.rb +158 -0
- data/sample/test1.rb +60 -0
- data/sample/test2.rb +44 -0
- data/sample/test4.rb +71 -0
- data/sample/test_binary_values.rb +35 -0
- data/spec/lib/helpers.rb +6 -4
- data/spec/m17n_spec.rb +2 -2
- data/spec/pgconn_spec.rb +51 -6
- data/spec/pgresult_spec.rb +30 -4
- metadata +147 -86
- data.tar.gz.sig +0 -3
- data/Contributors +0 -32
- data/README.OS_X +0 -19
- data/README.ja +0 -183
- data/Rakefile.local +0 -312
- data/rake/191_compat.rb +0 -26
- data/rake/dependencies.rb +0 -76
- data/rake/documentation.rb +0 -123
- data/rake/helpers.rb +0 -502
- data/rake/hg.rb +0 -318
- data/rake/manual.rb +0 -787
- data/rake/packaging.rb +0 -129
- data/rake/publishing.rb +0 -341
- data/rake/style.rb +0 -62
- data/rake/svn.rb +0 -668
- data/rake/testing.rb +0 -152
- data/rake/verifytask.rb +0 -64
- metadata.gz.sig +0 -3
data/spec/pgresult_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env rspec
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
4
|
BEGIN {
|
@@ -38,7 +38,34 @@ describe PGresult do
|
|
38
38
|
|
39
39
|
it "should insert nil AS NULL and return NULL as nil" do
|
40
40
|
res = @conn.exec("SELECT $1::int AS n", [nil])
|
41
|
-
res[0]['n'].should
|
41
|
+
res[0]['n'].should be_nil()
|
42
|
+
end
|
43
|
+
|
44
|
+
it "encapsulates errors in a PGError object" do
|
45
|
+
exception = nil
|
46
|
+
begin
|
47
|
+
@conn.exec( "SELECT * FROM nonexistant_table" )
|
48
|
+
rescue PGError => err
|
49
|
+
exception = err
|
50
|
+
end
|
51
|
+
|
52
|
+
result = exception.result
|
53
|
+
|
54
|
+
result.should be_a( PGresult )
|
55
|
+
result.error_field( PGresult::PG_DIAG_SEVERITY ).should == 'ERROR'
|
56
|
+
result.error_field( PGresult::PG_DIAG_SQLSTATE ).should == '42P01'
|
57
|
+
result.error_field( PGresult::PG_DIAG_MESSAGE_PRIMARY ).
|
58
|
+
should == 'relation "nonexistant_table" does not exist'
|
59
|
+
result.error_field( PGresult::PG_DIAG_MESSAGE_DETAIL ).should be_nil()
|
60
|
+
result.error_field( PGresult::PG_DIAG_MESSAGE_HINT ).should be_nil()
|
61
|
+
result.error_field( PGresult::PG_DIAG_STATEMENT_POSITION ).should == '15'
|
62
|
+
result.error_field( PGresult::PG_DIAG_INTERNAL_POSITION ).should be_nil()
|
63
|
+
result.error_field( PGresult::PG_DIAG_INTERNAL_QUERY ).should be_nil()
|
64
|
+
result.error_field( PGresult::PG_DIAG_CONTEXT ).should be_nil()
|
65
|
+
result.error_field( PGresult::PG_DIAG_SOURCE_FILE ).should =~ /parse_relation\.c$/
|
66
|
+
result.error_field( PGresult::PG_DIAG_SOURCE_LINE ).should == '857'
|
67
|
+
result.error_field( PGresult::PG_DIAG_SOURCE_FUNCTION ).should == 'parserOpenTable'
|
68
|
+
|
42
69
|
end
|
43
70
|
|
44
71
|
it "should detect division by zero as SQLSTATE 22012" do
|
@@ -46,8 +73,7 @@ describe PGresult do
|
|
46
73
|
begin
|
47
74
|
res = @conn.exec("SELECT 1/0")
|
48
75
|
rescue PGError => e
|
49
|
-
sqlstate = e.result.result_error_field(
|
50
|
-
PGresult::PG_DIAG_SQLSTATE).to_i
|
76
|
+
sqlstate = e.result.result_error_field( PGresult::PG_DIAG_SQLSTATE ).to_i
|
51
77
|
end
|
52
78
|
sqlstate.should == 22012
|
53
79
|
end
|
metadata
CHANGED
@@ -1,47 +1,107 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 12
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.12.0
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Jeff Davis
|
14
14
|
- Michael Granger
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
|
-
cert_chain:
|
18
|
-
- |
|
19
|
-
-----BEGIN CERTIFICATE-----
|
20
|
-
MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
|
21
|
-
FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
|
22
|
-
DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
|
23
|
-
FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
|
24
|
-
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
|
25
|
-
h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
|
26
|
-
vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
|
27
|
-
KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
|
28
|
-
BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
|
29
|
-
TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
|
30
|
-
AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
|
31
|
-
+saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
|
32
|
-
vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
|
33
|
-
HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
|
34
|
-
aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
|
35
|
-
U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
|
36
|
-
cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
|
37
|
-
-----END CERTIFICATE-----
|
38
|
-
|
39
|
-
date: 2011-04-19 00:00:00 Z
|
40
|
-
dependencies: []
|
17
|
+
cert_chain: []
|
41
18
|
|
19
|
+
date: 2011-12-08 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rake-compiler
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 5
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 7
|
33
|
+
version: "0.7"
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: hoe-mercurial
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 25
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 3
|
48
|
+
- 1
|
49
|
+
version: 1.3.1
|
50
|
+
type: :development
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rspec
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 15
|
61
|
+
segments:
|
62
|
+
- 2
|
63
|
+
- 6
|
64
|
+
version: "2.6"
|
65
|
+
type: :development
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: hoe
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 27
|
76
|
+
segments:
|
77
|
+
- 2
|
78
|
+
- 12
|
79
|
+
version: "2.12"
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rdoc
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 19
|
91
|
+
segments:
|
92
|
+
- 3
|
93
|
+
- 10
|
94
|
+
version: "3.10"
|
95
|
+
type: :development
|
96
|
+
version_requirements: *id005
|
42
97
|
description: |-
|
43
|
-
|
44
|
-
|
98
|
+
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
|
99
|
+
|
100
|
+
It works with PostgreSQL 8.2 and later.
|
101
|
+
|
102
|
+
This will be the last minor version to support 8.2 -- 0.13 will support 8.3
|
103
|
+
and later, following the
|
104
|
+
{PostgreSQL Release Support Policy}[http://bit.ly/6AfPhm].
|
45
105
|
email:
|
46
106
|
- ruby-pg@j-davis.com
|
47
107
|
- ged@FaerieMUD.org
|
@@ -50,69 +110,75 @@ executables: []
|
|
50
110
|
extensions: []
|
51
111
|
|
52
112
|
extra_rdoc_files:
|
53
|
-
-
|
54
|
-
- README
|
55
|
-
- README.
|
56
|
-
-
|
57
|
-
-
|
113
|
+
- Manifest.txt
|
114
|
+
- README.rdoc
|
115
|
+
- README.OS_X.rdoc
|
116
|
+
- Contributors.rdoc
|
117
|
+
- History.rdoc
|
118
|
+
- README.ja.rdoc
|
119
|
+
- README.windows.rdoc
|
120
|
+
- BSD
|
121
|
+
- GPL
|
58
122
|
- LICENSE
|
123
|
+
- ext/pg.c
|
124
|
+
- ext/compat.c
|
59
125
|
files:
|
60
|
-
-
|
126
|
+
- .gemtest
|
127
|
+
- BSD
|
61
128
|
- ChangeLog
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
- README.windows
|
129
|
+
- Contributors.rdoc
|
130
|
+
- GPL
|
131
|
+
- History.rdoc
|
66
132
|
- LICENSE
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
133
|
+
- Manifest.txt
|
134
|
+
- README.OS_X.rdoc
|
135
|
+
- README.ja.rdoc
|
136
|
+
- README.rdoc
|
137
|
+
- README.windows.rdoc
|
138
|
+
- Rakefile
|
139
|
+
- Rakefile.cross
|
72
140
|
- ext/compat.c
|
73
|
-
- ext/pg.c
|
74
141
|
- ext/compat.h
|
75
|
-
- ext/pg.h
|
76
142
|
- ext/extconf.rb
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
143
|
+
- ext/pg.c
|
144
|
+
- ext/pg.h
|
145
|
+
- ext/vc/pg.sln
|
146
|
+
- ext/vc/pg_18/pg.vcproj
|
147
|
+
- ext/vc/pg_19/pg_19.vcproj
|
148
|
+
- lib/pg.rb
|
149
|
+
- misc/openssl-pg-segfault.rb
|
150
|
+
- sample/async_api.rb
|
151
|
+
- sample/async_copyto.rb
|
152
|
+
- sample/copyfrom.rb
|
153
|
+
- sample/copyto.rb
|
154
|
+
- sample/cursor.rb
|
155
|
+
- sample/losample.rb
|
156
|
+
- sample/notify_wait.rb
|
157
|
+
- sample/psql.rb
|
158
|
+
- sample/psqlHelp.rb
|
159
|
+
- sample/test1.rb
|
160
|
+
- sample/test2.rb
|
161
|
+
- sample/test4.rb
|
162
|
+
- sample/test_binary_values.rb
|
96
163
|
- spec/data/expected_trace.out
|
97
164
|
- spec/data/random_binary_data
|
165
|
+
- spec/lib/helpers.rb
|
166
|
+
- spec/m17n_spec.rb
|
167
|
+
- spec/pgconn_spec.rb
|
168
|
+
- spec/pgresult_spec.rb
|
98
169
|
- lib/1.8/pg_ext.so
|
99
170
|
- lib/1.9/pg_ext.so
|
100
|
-
homepage:
|
171
|
+
homepage: https://bitbucket.org/ged/ruby-pg
|
101
172
|
licenses:
|
173
|
+
- BSD
|
102
174
|
- Ruby
|
103
175
|
- GPL
|
104
|
-
- BSD
|
105
176
|
post_install_message:
|
106
177
|
rdoc_options:
|
107
|
-
- --
|
108
|
-
-
|
109
|
-
- --include
|
110
|
-
- .
|
111
|
-
- --main=README
|
112
|
-
- --title=pg
|
178
|
+
- --main
|
179
|
+
- README.rdoc
|
113
180
|
require_paths:
|
114
181
|
- lib
|
115
|
-
- ext
|
116
182
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
183
|
none: false
|
118
184
|
requirements:
|
@@ -133,17 +199,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
199
|
segments:
|
134
200
|
- 0
|
135
201
|
version: "0"
|
136
|
-
requirements:
|
137
|
-
|
138
|
-
rubyforge_project:
|
139
|
-
rubygems_version: 1.
|
202
|
+
requirements: []
|
203
|
+
|
204
|
+
rubyforge_project: pg
|
205
|
+
rubygems_version: 1.8.11
|
140
206
|
signing_key:
|
141
207
|
specification_version: 3
|
142
|
-
summary:
|
143
|
-
test_files:
|
144
|
-
|
145
|
-
- spec/pgconn_spec.rb
|
146
|
-
- spec/pgresult_spec.rb
|
147
|
-
- spec/lib/helpers.rb
|
148
|
-
- spec/data/expected_trace.out
|
149
|
-
- spec/data/random_binary_data
|
208
|
+
summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
|
209
|
+
test_files: []
|
210
|
+
|
data.tar.gz.sig
DELETED
data/Contributors
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
Dennis Vshivkov <walrus@amur.ru>
|
2
|
-
Gabriel Emerson <gemerson@evalsoft.com>
|
3
|
-
Noboru Saitou <noborus@netlab.jp>
|
4
|
-
Akinori MUSHA <knu@iDaemons.org>
|
5
|
-
Andy Yu <is@gnuchina.org>
|
6
|
-
Ceri Storey <cez@compsoc.man.ac.uk>
|
7
|
-
Gavin Kistner <gavin@refinery.com>
|
8
|
-
Henry T. So Jr. <henryso@panix.com>
|
9
|
-
Jeremy Henty <jeremy@chaos.org.uk>
|
10
|
-
<kasa@air.linkclub.or.jp>
|
11
|
-
Leon Brooks <leon-ruby-postgres@cyberknights.com.au>
|
12
|
-
Martin Hedenfalk <mahe@kth.se>
|
13
|
-
<matz@zetabits.com>
|
14
|
-
MoonWolf <moonwolf@moonwolf.com>
|
15
|
-
<m_seki@mva.biglobe.ne.jp>
|
16
|
-
Nate Haggard <nate@wordplace.com>
|
17
|
-
Neil Conway <nconway@klamath.dyndns.org>
|
18
|
-
Noboru Matui <silicon@mx1.freemail.ne.jp>
|
19
|
-
Okada Jun <yun@be-in.org>
|
20
|
-
Shirai,Kaoru <shirai@p1jp.com>
|
21
|
-
Riley <wormwood@speakeasy.org>
|
22
|
-
shibata <kshibata@vesta.ocn.ne.jp>
|
23
|
-
<greentea@fa2.so-net.ne.jp>
|
24
|
-
ts <decoux@moulon.inra.fr>
|
25
|
-
Yuta TSUBOI <yuuta-t@is.aist-nara.ac.jp>
|
26
|
-
Lugovoi Nikolai <meadow.nnick@gmail.com>
|
27
|
-
Jeff Davis <ruby@j-davis.com>
|
28
|
-
Bertram Scharpf <software@bertram-scharpf.de>
|
29
|
-
Michael Granger <ged@FaerieMUD.org>
|
30
|
-
Mahlon E. Smith <mahlon@martini.nu>
|
31
|
-
Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
|
32
|
-
|
data/README.OS_X
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= Compiling on MacOS X
|
2
|
-
|
3
|
-
If you are building/installing ruby-pg on MacOS X, and the installation doesn't work at first, here are a few things you can try.
|
4
|
-
|
5
|
-
== Compiling With the Correct Architecture
|
6
|
-
|
7
|
-
OS X supports both architecture-specific binaries (e.g. i386), as well as universal binaries (i.e. i386 & ppc). If ruby is built as a universal binary and postgresql is not, you need to specify the path to the appropriate pg_config binary or set the environment variable ARCHFLAGS appropriately.
|
8
|
-
|
9
|
-
For example, if you're using the stock Ruby binary, and PostgreSQL 8.4.x installed from MacPorts (without specifying the {{{+universal}}} variant), do:
|
10
|
-
|
11
|
-
gem install -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
12
|
-
|
13
|
-
Alternatively, if the build system can't figure out which architectures it should include, you may need to set the 'ARCHFLAGS' environment variable explicitly:
|
14
|
-
|
15
|
-
sudo env ARCHFLAGS='-arch i386' gem install pg
|
16
|
-
|
17
|
-
or, if you're building from source:
|
18
|
-
|
19
|
-
rake compile ARCHFLAGS="-arch i386"
|
data/README.ja
DELETED
@@ -1,183 +0,0 @@
|
|
1
|
-
PostgreSQL$BMQ3HD%%i%$%V%i%j(B version 0.7.1
|
2
|
-
|
3
|
-
$B$^$D$b$H(B $B$f$-$R$m(B
|
4
|
-
$B$^$D$b$H(B $B$($$$8(B
|
5
|
-
|
6
|
-
$B@$OC?M(B: $B@FF#(B $BEP(B
|
7
|
-
|
8
|
-
- What's this ?
|
9
|
-
|
10
|
-
$BK\%i%$%V%i%j$O!"(BRuby$B$+$i(BPostgreSQL$B$X%"%/%;%9$9$k$?$a$N3HD%%i%$%V%i%j$G$9!#(B
|
11
|
-
$B%5%]!<%H$7$F$$$k(BPostgreSQL$B$N%P!<%8%g%s$O!"(B6.5/7.0/7.1/7.2 $B$G$9!#(B6.3$B0JA0$N(B
|
12
|
-
$B%P!<%8%g%s$G$b(B($B$A$g$C$H$7$?JQ99$G(B)$BF0:n$9$k$H;W$$$^$9$,!"%F%9%H$7$F$$$^$;$s!#(B
|
13
|
-
|
14
|
-
- How to install ?
|
15
|
-
*** requirement ***
|
16
|
-
PostgreSQL module$B$r;H$&$s$G$9$+$i!$EvA3(BPostgreSQL$B$OI,MW$G$9$M!%:#$N$H$3$m(B
|
17
|
-
$B%m!<%+%k$K(BPostgreSQL$B$,%$%s%9%H!<%k$5$l$F$$$k$3$H$rA0Ds$K$7$F$$$^$9$,!$(B
|
18
|
-
$BI,MW$J%X%C%@$H(Blibpq$B$5$($"$l$P!$%5!<%P$OI,$:$7$b%m!<%+%k$GF0:n$7$F$$$kI,MW(B
|
19
|
-
$B$O$"$j$^$;$s!%(B
|
20
|
-
|
21
|
-
$B%G%U%)%k%H$G$O!$(BPostgreSQL$B$,(B/usr/local/pgsql$BG[2<$K%$%s%9%H!<%k$5$l$F$$$k(B
|
22
|
-
$B$H$7$F$$$^$9!%JL$N>l=j$K%$%s%9%H!<%k$7$F$$$k>l9g$K$O!$4D6-JQ?t(BPGLIB$B$K(Blibpq
|
23
|
-
$B%i%$%V%i%j$,CV$$$F$"$k(Bdirectory$B$K@_Dj$7$F2<$5$$!#(B
|
24
|
-
|
25
|
-
$BG$0U$N>l=j$G!$$3$N%"!<%+%$%V$rE83+$7$F$/$@$5$$!%8e$O(B
|
26
|
-
|
27
|
-
ruby extconf.rb
|
28
|
-
make
|
29
|
-
su ($B$b$7I,MW$J$i(B)
|
30
|
-
make install
|
31
|
-
|
32
|
-
$B$H$9$k$@$1$G$9!%(BPostgreSQL$B$N%$%s%/%k!<%I%U%!%$%k!"%i%$%V%i%j%U%!%$%k$N(B
|
33
|
-
$B%$%s%9%H!<%k>l=j$,I8=`$N0LCV$G$O$J$/%3%s%Q%$%i$,8+IU$1$k$3$H$,$G$-$J$$(B
|
34
|
-
$B>l9g$K$O(B
|
35
|
-
|
36
|
-
--with-pgsql-include-dir=<$B%$%s%/%k!<%I%U%!%$%k%G%#%l%/%H%j(B>
|
37
|
-
--with-pgsql-lib-dir=<$B%i%$%V%i%j%G%#%l%/%H%j(B>
|
38
|
-
$B$^$?$O(B
|
39
|
-
--with-pgsql-dir=<$B%G%#%l%/%H%j(B>
|
40
|
-
$B$3$l$O0J2<$N$h$&$K;XDj$7$?$H$-$H$*$J$8$G$9!#(B
|
41
|
-
--with-pgsql-include-dir=<$B%G%#%l%/%H%j(B>/include
|
42
|
-
--with-pgsql-lib-dir=<$B%G%#%l%/%H%j(B>/lib
|
43
|
-
|
44
|
-
|
45
|
-
$BNc$($P(B
|
46
|
-
|
47
|
-
ruby extconf.rb --with-pgsql-include-dir=/usr/local/pgsql/include \
|
48
|
-
--with-pgsql-lib-dir=/usr/local/pgsql/lib
|
49
|
-
$B$^$?$O(B
|
50
|
-
ruby extconf.rb --with-pgsql-dir=/usr/local/pgsql
|
51
|
-
|
52
|
-
$B$N$h$&$K;XDj$7$F$/$@$5$$!#(B
|
53
|
-
|
54
|
-
- How to use ?
|
55
|
-
|
56
|
-
require "postgres"
|
57
|
-
|
58
|
-
$B$H$7$F$+$i8f;HMQ2<$5$$!#(B
|
59
|
-
|
60
|
-
- What function can I use ?
|
61
|
-
|
62
|
-
$B4pK\E*$K!"(BC$B$N(Blibpq$B%$%s%?%U%'!<%9$GDj5A$5$l$F$$$k4X?t$O%5%]!<%H$7$F$$$^$9!#(B
|
63
|
-
ver 0.6.0 $B$+$i?7$7$/(B Large Object $B%$%s%?!<%U%'%$%9$,DI2C$5$l$^$7$?!#(B
|
64
|
-
|
65
|
-
$B%5%]!<%H$7$F$$$k%a%=%C%I$N0lMw$O0J2<$NDL$j$G$9!#(B
|
66
|
-
|
67
|
-
PGconn$B%/%i%9(B:
|
68
|
-
|
69
|
-
$B%/%i%9%a%=%C%I(B
|
70
|
-
new
|
71
|
-
connect
|
72
|
-
setdb
|
73
|
-
setdblogin
|
74
|
-
escape
|
75
|
-
quote
|
76
|
-
escape_bytea
|
77
|
-
|
78
|
-
$B%a%=%C%I(B
|
79
|
-
db
|
80
|
-
host
|
81
|
-
options
|
82
|
-
port
|
83
|
-
tty
|
84
|
-
status
|
85
|
-
error
|
86
|
-
finish
|
87
|
-
close
|
88
|
-
reset
|
89
|
-
user
|
90
|
-
trace
|
91
|
-
untrace
|
92
|
-
|
93
|
-
exec
|
94
|
-
query
|
95
|
-
async_exec
|
96
|
-
async_query
|
97
|
-
get_notify
|
98
|
-
insert_table
|
99
|
-
putline
|
100
|
-
getline
|
101
|
-
endcopy
|
102
|
-
notifies
|
103
|
-
|
104
|
-
lo_import
|
105
|
-
lo_export
|
106
|
-
lo_create
|
107
|
-
lo_open
|
108
|
-
lo_unlink
|
109
|
-
|
110
|
-
client_encoding
|
111
|
-
set_client_encoding
|
112
|
-
|
113
|
-
PGresult$B%/%i%9(B:
|
114
|
-
|
115
|
-
$B%a%=%C%I(B
|
116
|
-
each
|
117
|
-
[]
|
118
|
-
status
|
119
|
-
result
|
120
|
-
fields
|
121
|
-
num_tuples
|
122
|
-
num_fields
|
123
|
-
fieldname
|
124
|
-
fieldnum
|
125
|
-
type
|
126
|
-
size
|
127
|
-
getvalue
|
128
|
-
getlength
|
129
|
-
cmdstatus
|
130
|
-
print
|
131
|
-
clear
|
132
|
-
|
133
|
-
PGlarge$B%/%i%9(B:
|
134
|
-
|
135
|
-
$B%a%=%C%I(B
|
136
|
-
open
|
137
|
-
close
|
138
|
-
read
|
139
|
-
write
|
140
|
-
lseek
|
141
|
-
tell
|
142
|
-
unlink
|
143
|
-
oid
|
144
|
-
size
|
145
|
-
export
|
146
|
-
|
147
|
-
- Acknowledgement
|
148
|
-
|
149
|
-
$BK\3HD%%i%$%V%i%j$r:n@.$9$k$K$"$?$C$F!"(Bruby-list, ruby-dev,
|
150
|
-
ruby-talk,$B5Z$S(B pgsql-jp$B%a!<%j%s%0%j%9%H$N%a%s%P!<$K!"B?$/$NM-1W$J(B
|
151
|
-
$B%"%I%P%$%9$rD:$-$^$7$?!#$3$3$K46<U$N0U$rI=$7$^$9!#(B
|
152
|
-
|
153
|
-
- Copying
|
154
|
-
|
155
|
-
$BK\3HD%%i%$%V%i%j$NCx:n8"$O!"$^$D$b$H(B $B$f$-$R$m$H$^$D$b$H(B $B$($$$8$,(B
|
156
|
-
$BJ];}$7$^$9!#(B
|
157
|
-
|
158
|
-
$BK\3HD%%i%$%V%i%j$O!"(BRuby$BK\BN$HF1$8G[I[>r7o$K=>$C$F:FG[I[$9$k$3$H(B
|
159
|
-
$B$,$G$-$^$9!#(BRuby$BK\BN$NG[I[>r7o$K$D$$$F$O!"(BRuby$BG[I[J*Cf$N(BREADME.jp
|
160
|
-
$B$K=q$+$l$F$$$^$9!#(B
|
161
|
-
|
162
|
-
$B8=:_$O@FF#(B $BEP$,(B maintainer $B$r>5$C$F$$$k$N$G!"Ld$$9g$o$;$O$3$A$i$NJ}$K(B
|
163
|
-
$B$*4j$$$7$^$9!#(B
|
164
|
-
|
165
|
-
- Author
|
166
|
-
|
167
|
-
$B$^$D$b$H(B $B$f$-$R$m(B <matz@ruby-lang.org>
|
168
|
-
Author of Ruby
|
169
|
-
|
170
|
-
$B$^$D$b$H(B $B$($$$8(B <usagi@ruby.club.or.jp>
|
171
|
-
One of users who loves Ruby
|
172
|
-
|
173
|
-
$B$3$N$U$?$j$O7;Do$G$O$"$j$^$;$s!#(B :-)
|
174
|
-
|
175
|
-
- Special Thanks
|
176
|
-
|
177
|
-
Guy Decoux ts <decoux@moulon.inra.fr>
|
178
|
-
|
179
|
-
- maintainer
|
180
|
-
|
181
|
-
$B@FF#(B $BEP(B <noborus@netlab.jp>
|
182
|
-
$B$^$D$b$H$G$J$/$F$9$$$^$;$s(B :-)
|
183
|
-
|