pgsql 1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/result.h ADDED
@@ -0,0 +1,32 @@
1
+ /*
2
+ * result.h -- Pg query results
3
+ */
4
+
5
+ #ifndef __RESULT_H
6
+ #define __RESULT_H
7
+
8
+ #include "module.h"
9
+ #include "conn.h"
10
+
11
+
12
+ struct pgresult_data {
13
+ PGresult *res;
14
+ struct pgconn_data *conn;
15
+ VALUE fields;
16
+ VALUE indices;
17
+ };
18
+
19
+
20
+
21
+ extern VALUE pgresult_new( PGresult *result, struct pgconn_data *conn, VALUE cmd, VALUE par);
22
+ extern VALUE pgresult_clear( VALUE self);
23
+ extern VALUE pgresult_each( VALUE self);
24
+ extern VALUE pg_fetchrow( struct pgresult_data *r, int num);
25
+ extern VALUE pg_fetchresult( struct pgresult_data *r, int row, int col);
26
+
27
+
28
+ extern void Init_pgsql_result( void);
29
+
30
+
31
+ #endif
32
+
data/lib/undef.h ADDED
@@ -0,0 +1,11 @@
1
+ /*
2
+ * undef.h -- undefine constants that Ruby and in PostgreSQL have in common
3
+ */
4
+
5
+ #undef PACKAGE_BUGREPORT
6
+ #undef PACKAGE_NAME
7
+ #undef PACKAGE_STRING
8
+ #undef PACKAGE_TARNAME
9
+ #undef PACKAGE_VERSION
10
+ #undef _
11
+
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pgsql
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Bertram Scharpf
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-08-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: autorake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '2.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '2.0'
30
+ description: ! 'This is not the official PostgreSQL library that was originally written
31
+ by Guy
32
+
33
+ Decoux. As the project wasn''t maintained a long time after Guy''s decease, I
34
+
35
+ decided to fork my own project.
36
+
37
+ '
38
+ email: <software@bertram-scharpf.de>
39
+ executables: []
40
+ extensions:
41
+ - lib/mkrf_conf
42
+ extra_rdoc_files:
43
+ - README
44
+ - LICENSE
45
+ files:
46
+ - lib/Rakefile
47
+ - lib/mkrf_conf
48
+ - lib/undef.h
49
+ - lib/module.h
50
+ - lib/module.c
51
+ - lib/conn.h
52
+ - lib/conn.c
53
+ - lib/conn_quote.h
54
+ - lib/conn_quote.c
55
+ - lib/conn_exec.h
56
+ - lib/conn_exec.c
57
+ - lib/result.h
58
+ - lib/result.c
59
+ - README
60
+ - LICENSE
61
+ homepage: http://www.bertram-scharpf.de
62
+ licenses: []
63
+ post_install_message:
64
+ rdoc_options:
65
+ - --charset
66
+ - utf-8
67
+ - --main
68
+ - README
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements:
84
+ - PostgreSQL
85
+ rubyforge_project: NONE
86
+ rubygems_version: 1.8.25
87
+ signing_key:
88
+ specification_version: 3
89
+ summary: PostgreSQL-API for Ruby
90
+ test_files: []