do_postgres 0.2.4 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -3
- data/Rakefile +46 -25
- data/TODO +4 -0
- data/ext/do_postgres_ext.c +614 -0
- data/ext/extconf.rb +18 -6
- data/ext/type-oids.h +76 -0
- data/lib/do_postgres.rb +4 -245
- data/lib/do_postgres/transaction.rb +37 -0
- data/spec/integration/do_postgres_spec.rb +202 -0
- data/spec/integration/logging_spec.rb +47 -0
- data/spec/integration/quoting_spec.rb +19 -0
- data/spec/integration/timezone_spec.rb +58 -0
- data/spec/spec_helper.rb +79 -0
- data/spec/unit/transaction_spec.rb +28 -0
- metadata +62 -48
- data/ext/postgres_c.c +0 -8185
- data/ext/postgres_c.i +0 -73
data/ext/postgres_c.i
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
%module postgres_c
|
2
|
-
%{
|
3
|
-
#include "libpq-fe.h"
|
4
|
-
%}
|
5
|
-
|
6
|
-
%include "/opt/local/include/postgresql82/libpq-fe.h"
|
7
|
-
%include "/opt/local/include/postgresql82/postgres_ext.h"
|
8
|
-
|
9
|
-
#define BOOLOID 16
|
10
|
-
#define BYTEAOID 17
|
11
|
-
#define CHAROID 18
|
12
|
-
#define NAMEOID 19
|
13
|
-
#define INT8OID 20
|
14
|
-
#define INT2OID 21
|
15
|
-
#define INT2VECTOROID 22
|
16
|
-
#define INT4OID 23
|
17
|
-
#define REGPROCOID 24
|
18
|
-
#define TEXTOID 25
|
19
|
-
#define OIDOID 26
|
20
|
-
#define TIDOID 27
|
21
|
-
#define XIDOID 28
|
22
|
-
#define CIDOID 29
|
23
|
-
#define OIDVECTOROID 30
|
24
|
-
#define PG_TYPE_RELTYPE_OID 71
|
25
|
-
#define PG_ATTRIBUTE_RELTYPE_OID 75
|
26
|
-
#define PG_PROC_RELTYPE_OID 81
|
27
|
-
#define PG_CLASS_RELTYPE_OID 83
|
28
|
-
#define POINTOID 600
|
29
|
-
#define LSEGOID 601
|
30
|
-
#define PATHOID 602
|
31
|
-
#define BOXOID 603
|
32
|
-
#define POLYGONOID 604
|
33
|
-
#define LINEOID 628
|
34
|
-
#define FLOAT4OID 700
|
35
|
-
#define FLOAT8OID 701
|
36
|
-
#define ABSTIMEOID 702
|
37
|
-
#define RELTIMEOID 703
|
38
|
-
#define TINTERVALOID 704
|
39
|
-
#define UNKNOWNOID 705
|
40
|
-
#define CIRCLEOID 718
|
41
|
-
#define CASHOID 790
|
42
|
-
#define MACADDROID 829
|
43
|
-
#define INETOID 869
|
44
|
-
#define CIDROID 650
|
45
|
-
#define INT4ARRAYOID 1007
|
46
|
-
#define ACLITEMOID 1033
|
47
|
-
#define BPCHAROID 1042
|
48
|
-
#define VARCHAROID 1043
|
49
|
-
#define DATEOID 1082
|
50
|
-
#define TIMEOID 1083
|
51
|
-
#define TIMESTAMPOID 1114
|
52
|
-
#define TIMESTAMPTZOID 1184
|
53
|
-
#define INTERVALOID 1186
|
54
|
-
#define TIMETZOID 1266
|
55
|
-
#define BITOID 1560
|
56
|
-
#define VARBITOID 1562
|
57
|
-
#define NUMERICOID 1700
|
58
|
-
#define REFCURSOROID 1790
|
59
|
-
#define REGPROCEDUREOID 2202
|
60
|
-
#define REGOPEROID 2203
|
61
|
-
#define REGOPERATOROID 2204
|
62
|
-
#define REGCLASSOID 2205
|
63
|
-
#define REGTYPEOID 2206
|
64
|
-
#define RECORDOID 2249
|
65
|
-
#define CSTRINGOID 2275
|
66
|
-
#define ANYOID 2276
|
67
|
-
#define ANYARRAYOID 2277
|
68
|
-
#define VOIDOID 2278
|
69
|
-
#define TRIGGEROID 2279
|
70
|
-
#define LANGUAGE_HANDLEROID 2280
|
71
|
-
#define INTERNALOID 2281
|
72
|
-
#define OPAQUEOID 2282
|
73
|
-
#define ANYELEMENTOID 2283
|