pg 0.7.9.2008.01.28
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +340 -0
- data/COPYING.txt +340 -0
- data/Contributors +28 -0
- data/GPL +340 -0
- data/LICENSE +58 -0
- data/README +125 -0
- data/ext/compat.c +529 -0
- data/ext/compat.h +176 -0
- data/ext/extconf.rb +80 -0
- data/ext/pg.c +3251 -0
- data/ext/pg.h +34 -0
- metadata +59 -0
data/ext/pg.h
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
#include <stdio.h>
|
2
|
+
#include <stdlib.h>
|
3
|
+
#include <sys/types.h>
|
4
|
+
#include <unistd.h>
|
5
|
+
|
6
|
+
#include "ruby.h"
|
7
|
+
#include "rubyio.h"
|
8
|
+
#include "libpq-fe.h"
|
9
|
+
#include "libpq/libpq-fs.h" /* large-object interface */
|
10
|
+
|
11
|
+
#include "compat.h"
|
12
|
+
|
13
|
+
#if RUBY_VERSION_CODE < 180
|
14
|
+
#define rb_check_string_type(x) rb_check_convert_type(x, T_STRING, "String", "to_str")
|
15
|
+
#endif /* RUBY_VERSION_CODE < 180 */
|
16
|
+
|
17
|
+
#ifndef RARRAY_LEN
|
18
|
+
#define RARRAY_LEN(x) RARRAY((x))->len
|
19
|
+
#endif /* RARRAY_LEN */
|
20
|
+
|
21
|
+
#ifndef RSTRING_LEN
|
22
|
+
#define RSTRING_LEN(x) RSTRING((x))->len
|
23
|
+
#endif /* RSTRING_LEN */
|
24
|
+
|
25
|
+
#ifndef RSTRING_PTR
|
26
|
+
#define RSTRING_PTR(x) RSTRING((x))->ptr
|
27
|
+
#endif /* RSTRING_PTR */
|
28
|
+
|
29
|
+
#ifndef StringValuePtr
|
30
|
+
#define StringValuePtr(x) STR2CSTR(x)
|
31
|
+
#endif /* StringValuePtr */
|
32
|
+
|
33
|
+
void Init_pg(void);
|
34
|
+
|
metadata
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: pg
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.7.9.2008.01.28
|
7
|
+
date: 2008-01-28 00:00:00 -08:00
|
8
|
+
summary: Ruby extension library providing an API to PostgreSQL
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: ruby-pg@j-davis.com
|
12
|
+
homepage: http://rubyforge.org/projects/ruby-pg
|
13
|
+
rubyforge_project: ruby-pg
|
14
|
+
description:
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Yukihiro Matsumoto
|
31
|
+
- Eiji Matsumoto
|
32
|
+
- Noboru Saitou
|
33
|
+
- Dave Lee
|
34
|
+
- Jeff Davis
|
35
|
+
files:
|
36
|
+
- COPYING
|
37
|
+
- COPYING.txt
|
38
|
+
- Contributors
|
39
|
+
- GPL
|
40
|
+
- LICENSE
|
41
|
+
- README
|
42
|
+
- ext/compat.c
|
43
|
+
- ext/compat.h
|
44
|
+
- ext/pg.h
|
45
|
+
- ext/pg.c
|
46
|
+
test_files: []
|
47
|
+
|
48
|
+
rdoc_options: []
|
49
|
+
|
50
|
+
extra_rdoc_files:
|
51
|
+
- ext/pg.c
|
52
|
+
executables: []
|
53
|
+
|
54
|
+
extensions:
|
55
|
+
- ext/extconf.rb
|
56
|
+
requirements:
|
57
|
+
- PostgreSQL libpq library and headers
|
58
|
+
dependencies: []
|
59
|
+
|