activerecord-postgres-hstore 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/.gitignore +25 -0
  2. data/.travis.yml +1 -1
  3. data/Gemfile +4 -10
  4. data/README.md +33 -6
  5. data/Rakefile +3 -18
  6. data/VERSION +1 -1
  7. data/activerecord-postgres-hstore.gemspec +22 -128
  8. data/lib/activerecord-postgres-hstore/coder.rb +1 -1
  9. data/spec/{activerecord-coders-hstore.rb → activerecord-coders-hstore_spec.rb} +4 -0
  10. metadata +14 -120
  11. data/Gemfile.lock +0 -121
  12. data/app/.gitignore +0 -4
  13. data/app/Gemfile +0 -28
  14. data/app/Gemfile.lock +0 -81
  15. data/app/README +0 -256
  16. data/app/Rakefile +0 -7
  17. data/app/app/controllers/application_controller.rb +0 -3
  18. data/app/app/helpers/application_helper.rb +0 -2
  19. data/app/app/models/bar.rb +0 -3
  20. data/app/app/models/foo.rb +0 -3
  21. data/app/app/views/layouts/application.html.erb +0 -14
  22. data/app/bench.rb +0 -76
  23. data/app/bench_results.txt +0 -13
  24. data/app/config.ru +0 -4
  25. data/app/config/application.rb +0 -43
  26. data/app/config/boot.rb +0 -13
  27. data/app/config/database.yml +0 -51
  28. data/app/config/environment.rb +0 -5
  29. data/app/config/environments/development.rb +0 -22
  30. data/app/config/environments/production.rb +0 -49
  31. data/app/config/environments/test.rb +0 -35
  32. data/app/config/initializers/activerecord_postgres_hstore.rb +0 -0
  33. data/app/config/initializers/backtrace_silencers.rb +0 -7
  34. data/app/config/initializers/inflections.rb +0 -10
  35. data/app/config/initializers/mime_types.rb +0 -5
  36. data/app/config/initializers/secret_token.rb +0 -7
  37. data/app/config/initializers/session_store.rb +0 -8
  38. data/app/config/locales/en.yml +0 -5
  39. data/app/config/routes.rb +0 -58
  40. data/app/db/development_structure.sql +0 -580
  41. data/app/db/migrate/20100906191151_add_hstore.rb +0 -276
  42. data/app/db/migrate/20100906191457_create_foos.rb +0 -13
  43. data/app/db/migrate/20100906191506_create_bars.rb +0 -12
  44. data/app/db/schema.rb +0 -27
  45. data/app/db/seeds.rb +0 -7
  46. data/app/doc/README_FOR_APP +0 -2
  47. data/app/generate_copy_files.rb +0 -47
  48. data/app/lib/tasks/.gitkeep +0 -0
  49. data/app/public/404.html +0 -26
  50. data/app/public/422.html +0 -26
  51. data/app/public/500.html +0 -26
  52. data/app/public/favicon.ico +0 -0
  53. data/app/public/images/rails.png +0 -0
  54. data/app/public/index.html +0 -262
  55. data/app/public/javascripts/.gitkeep +0 -0
  56. data/app/public/javascripts/application.js +0 -0
  57. data/app/public/robots.txt +0 -5
  58. data/app/public/stylesheets/.gitkeep +0 -0
  59. data/app/script/rails +0 -6
  60. data/app/test/performance/browsing_test.rb +0 -9
  61. data/app/test/test_helper.rb +0 -6
  62. data/app/test/unit/bar_test.rb +0 -133
  63. data/app/test/unit/foo_test.rb +0 -8
  64. data/app/vendor/plugins/.gitkeep +0 -0
@@ -1,580 +0,0 @@
1
- --
2
- -- PostgreSQL database dump
3
- --
4
-
5
- SET statement_timeout = 0;
6
- SET client_encoding = 'UTF8';
7
- SET standard_conforming_strings = off;
8
- SET check_function_bodies = false;
9
- SET client_min_messages = warning;
10
- SET escape_string_warning = off;
11
-
12
- SET search_path = public, pg_catalog;
13
-
14
- --
15
- -- Name: ghstore; Type: SHELL TYPE; Schema: public; Owner: -
16
- --
17
-
18
- CREATE TYPE ghstore;
19
-
20
-
21
- --
22
- -- Name: ghstore_in(cstring); Type: FUNCTION; Schema: public; Owner: -
23
- --
24
-
25
- CREATE FUNCTION ghstore_in(cstring) RETURNS ghstore
26
- LANGUAGE c STRICT
27
- AS '$libdir/hstore', 'ghstore_in';
28
-
29
-
30
- --
31
- -- Name: ghstore_out(ghstore); Type: FUNCTION; Schema: public; Owner: -
32
- --
33
-
34
- CREATE FUNCTION ghstore_out(ghstore) RETURNS cstring
35
- LANGUAGE c STRICT
36
- AS '$libdir/hstore', 'ghstore_out';
37
-
38
-
39
- --
40
- -- Name: ghstore; Type: TYPE; Schema: public; Owner: -
41
- --
42
-
43
- CREATE TYPE ghstore (
44
- INTERNALLENGTH = variable,
45
- INPUT = ghstore_in,
46
- OUTPUT = ghstore_out,
47
- ALIGNMENT = int4,
48
- STORAGE = plain
49
- );
50
-
51
-
52
- --
53
- -- Name: hstore; Type: SHELL TYPE; Schema: public; Owner: -
54
- --
55
-
56
- CREATE TYPE hstore;
57
-
58
-
59
- --
60
- -- Name: hstore_in(cstring); Type: FUNCTION; Schema: public; Owner: -
61
- --
62
-
63
- CREATE FUNCTION hstore_in(cstring) RETURNS hstore
64
- LANGUAGE c STRICT
65
- AS '$libdir/hstore', 'hstore_in';
66
-
67
-
68
- --
69
- -- Name: hstore_out(hstore); Type: FUNCTION; Schema: public; Owner: -
70
- --
71
-
72
- CREATE FUNCTION hstore_out(hstore) RETURNS cstring
73
- LANGUAGE c STRICT
74
- AS '$libdir/hstore', 'hstore_out';
75
-
76
-
77
- --
78
- -- Name: hstore; Type: TYPE; Schema: public; Owner: -
79
- --
80
-
81
- CREATE TYPE hstore (
82
- INTERNALLENGTH = variable,
83
- INPUT = hstore_in,
84
- OUTPUT = hstore_out,
85
- ALIGNMENT = int4,
86
- STORAGE = extended
87
- );
88
-
89
-
90
- --
91
- -- Name: akeys(hstore); Type: FUNCTION; Schema: public; Owner: -
92
- --
93
-
94
- CREATE FUNCTION akeys(hstore) RETURNS text[]
95
- LANGUAGE c IMMUTABLE STRICT
96
- AS '$libdir/hstore', 'akeys';
97
-
98
-
99
- --
100
- -- Name: avals(hstore); Type: FUNCTION; Schema: public; Owner: -
101
- --
102
-
103
- CREATE FUNCTION avals(hstore) RETURNS text[]
104
- LANGUAGE c IMMUTABLE STRICT
105
- AS '$libdir/hstore', 'avals';
106
-
107
-
108
- --
109
- -- Name: defined(hstore, text); Type: FUNCTION; Schema: public; Owner: -
110
- --
111
-
112
- CREATE FUNCTION defined(hstore, text) RETURNS boolean
113
- LANGUAGE c IMMUTABLE STRICT
114
- AS '$libdir/hstore', 'defined';
115
-
116
-
117
- --
118
- -- Name: delete(hstore, text); Type: FUNCTION; Schema: public; Owner: -
119
- --
120
-
121
- CREATE FUNCTION delete(hstore, text) RETURNS hstore
122
- LANGUAGE c IMMUTABLE STRICT
123
- AS '$libdir/hstore', 'delete';
124
-
125
-
126
- --
127
- -- Name: each(hstore); Type: FUNCTION; Schema: public; Owner: -
128
- --
129
-
130
- CREATE FUNCTION each(hs hstore, OUT key text, OUT value text) RETURNS SETOF record
131
- LANGUAGE c IMMUTABLE STRICT
132
- AS '$libdir/hstore', 'each';
133
-
134
-
135
- --
136
- -- Name: exist(hstore, text); Type: FUNCTION; Schema: public; Owner: -
137
- --
138
-
139
- CREATE FUNCTION exist(hstore, text) RETURNS boolean
140
- LANGUAGE c IMMUTABLE STRICT
141
- AS '$libdir/hstore', 'exists';
142
-
143
-
144
- --
145
- -- Name: fetchval(hstore, text); Type: FUNCTION; Schema: public; Owner: -
146
- --
147
-
148
- CREATE FUNCTION fetchval(hstore, text) RETURNS text
149
- LANGUAGE c IMMUTABLE STRICT
150
- AS '$libdir/hstore', 'fetchval';
151
-
152
-
153
- --
154
- -- Name: ghstore_compress(internal); Type: FUNCTION; Schema: public; Owner: -
155
- --
156
-
157
- CREATE FUNCTION ghstore_compress(internal) RETURNS internal
158
- LANGUAGE c IMMUTABLE STRICT
159
- AS '$libdir/hstore', 'ghstore_compress';
160
-
161
-
162
- --
163
- -- Name: ghstore_consistent(internal, internal, integer, oid, internal); Type: FUNCTION; Schema: public; Owner: -
164
- --
165
-
166
- CREATE FUNCTION ghstore_consistent(internal, internal, integer, oid, internal) RETURNS boolean
167
- LANGUAGE c IMMUTABLE STRICT
168
- AS '$libdir/hstore', 'ghstore_consistent';
169
-
170
-
171
- --
172
- -- Name: ghstore_decompress(internal); Type: FUNCTION; Schema: public; Owner: -
173
- --
174
-
175
- CREATE FUNCTION ghstore_decompress(internal) RETURNS internal
176
- LANGUAGE c IMMUTABLE STRICT
177
- AS '$libdir/hstore', 'ghstore_decompress';
178
-
179
-
180
- --
181
- -- Name: ghstore_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
182
- --
183
-
184
- CREATE FUNCTION ghstore_penalty(internal, internal, internal) RETURNS internal
185
- LANGUAGE c IMMUTABLE STRICT
186
- AS '$libdir/hstore', 'ghstore_penalty';
187
-
188
-
189
- --
190
- -- Name: ghstore_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
191
- --
192
-
193
- CREATE FUNCTION ghstore_picksplit(internal, internal) RETURNS internal
194
- LANGUAGE c IMMUTABLE STRICT
195
- AS '$libdir/hstore', 'ghstore_picksplit';
196
-
197
-
198
- --
199
- -- Name: ghstore_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
200
- --
201
-
202
- CREATE FUNCTION ghstore_same(internal, internal, internal) RETURNS internal
203
- LANGUAGE c IMMUTABLE STRICT
204
- AS '$libdir/hstore', 'ghstore_same';
205
-
206
-
207
- --
208
- -- Name: ghstore_union(internal, internal); Type: FUNCTION; Schema: public; Owner: -
209
- --
210
-
211
- CREATE FUNCTION ghstore_union(internal, internal) RETURNS internal
212
- LANGUAGE c IMMUTABLE STRICT
213
- AS '$libdir/hstore', 'ghstore_union';
214
-
215
-
216
- --
217
- -- Name: gin_consistent_hstore(internal, smallint, internal, integer, internal, internal); Type: FUNCTION; Schema: public; Owner: -
218
- --
219
-
220
- CREATE FUNCTION gin_consistent_hstore(internal, smallint, internal, integer, internal, internal) RETURNS boolean
221
- LANGUAGE c IMMUTABLE STRICT
222
- AS '$libdir/hstore', 'gin_consistent_hstore';
223
-
224
-
225
- --
226
- -- Name: gin_extract_hstore(internal, internal); Type: FUNCTION; Schema: public; Owner: -
227
- --
228
-
229
- CREATE FUNCTION gin_extract_hstore(internal, internal) RETURNS internal
230
- LANGUAGE c IMMUTABLE STRICT
231
- AS '$libdir/hstore', 'gin_extract_hstore';
232
-
233
-
234
- --
235
- -- Name: gin_extract_hstore_query(internal, internal, smallint, internal, internal); Type: FUNCTION; Schema: public; Owner: -
236
- --
237
-
238
- CREATE FUNCTION gin_extract_hstore_query(internal, internal, smallint, internal, internal) RETURNS internal
239
- LANGUAGE c IMMUTABLE STRICT
240
- AS '$libdir/hstore', 'gin_extract_hstore_query';
241
-
242
-
243
- --
244
- -- Name: hs_concat(hstore, hstore); Type: FUNCTION; Schema: public; Owner: -
245
- --
246
-
247
- CREATE FUNCTION hs_concat(hstore, hstore) RETURNS hstore
248
- LANGUAGE c IMMUTABLE STRICT
249
- AS '$libdir/hstore', 'hs_concat';
250
-
251
-
252
- --
253
- -- Name: hs_contained(hstore, hstore); Type: FUNCTION; Schema: public; Owner: -
254
- --
255
-
256
- CREATE FUNCTION hs_contained(hstore, hstore) RETURNS boolean
257
- LANGUAGE c IMMUTABLE STRICT
258
- AS '$libdir/hstore', 'hs_contained';
259
-
260
-
261
- --
262
- -- Name: hs_contains(hstore, hstore); Type: FUNCTION; Schema: public; Owner: -
263
- --
264
-
265
- CREATE FUNCTION hs_contains(hstore, hstore) RETURNS boolean
266
- LANGUAGE c IMMUTABLE STRICT
267
- AS '$libdir/hstore', 'hs_contains';
268
-
269
-
270
- --
271
- -- Name: hstore(text, text); Type: FUNCTION; Schema: public; Owner: -
272
- --
273
-
274
- CREATE FUNCTION hstore(text, text) RETURNS hstore
275
- LANGUAGE c IMMUTABLE
276
- AS '$libdir/hstore', 'tconvert';
277
-
278
-
279
- --
280
- -- Name: isdefined(hstore, text); Type: FUNCTION; Schema: public; Owner: -
281
- --
282
-
283
- CREATE FUNCTION isdefined(hstore, text) RETURNS boolean
284
- LANGUAGE c IMMUTABLE STRICT
285
- AS '$libdir/hstore', 'defined';
286
-
287
-
288
- --
289
- -- Name: isexists(hstore, text); Type: FUNCTION; Schema: public; Owner: -
290
- --
291
-
292
- CREATE FUNCTION isexists(hstore, text) RETURNS boolean
293
- LANGUAGE c IMMUTABLE STRICT
294
- AS '$libdir/hstore', 'exists';
295
-
296
-
297
- --
298
- -- Name: skeys(hstore); Type: FUNCTION; Schema: public; Owner: -
299
- --
300
-
301
- CREATE FUNCTION skeys(hstore) RETURNS SETOF text
302
- LANGUAGE c IMMUTABLE STRICT
303
- AS '$libdir/hstore', 'skeys';
304
-
305
-
306
- --
307
- -- Name: svals(hstore); Type: FUNCTION; Schema: public; Owner: -
308
- --
309
-
310
- CREATE FUNCTION svals(hstore) RETURNS SETOF text
311
- LANGUAGE c IMMUTABLE STRICT
312
- AS '$libdir/hstore', 'svals';
313
-
314
-
315
- --
316
- -- Name: tconvert(text, text); Type: FUNCTION; Schema: public; Owner: -
317
- --
318
-
319
- CREATE FUNCTION tconvert(text, text) RETURNS hstore
320
- LANGUAGE c IMMUTABLE
321
- AS '$libdir/hstore', 'tconvert';
322
-
323
-
324
- --
325
- -- Name: ->; Type: OPERATOR; Schema: public; Owner: -
326
- --
327
-
328
- CREATE OPERATOR -> (
329
- PROCEDURE = fetchval,
330
- LEFTARG = hstore,
331
- RIGHTARG = text
332
- );
333
-
334
-
335
- --
336
- -- Name: <@; Type: OPERATOR; Schema: public; Owner: -
337
- --
338
-
339
- CREATE OPERATOR <@ (
340
- PROCEDURE = hs_contained,
341
- LEFTARG = hstore,
342
- RIGHTARG = hstore,
343
- COMMUTATOR = @>,
344
- RESTRICT = contsel,
345
- JOIN = contjoinsel
346
- );
347
-
348
-
349
- --
350
- -- Name: =>; Type: OPERATOR; Schema: public; Owner: -
351
- --
352
-
353
- CREATE OPERATOR => (
354
- PROCEDURE = tconvert,
355
- LEFTARG = text,
356
- RIGHTARG = text
357
- );
358
-
359
-
360
- --
361
- -- Name: ?; Type: OPERATOR; Schema: public; Owner: -
362
- --
363
-
364
- CREATE OPERATOR ? (
365
- PROCEDURE = exist,
366
- LEFTARG = hstore,
367
- RIGHTARG = text,
368
- RESTRICT = contsel,
369
- JOIN = contjoinsel
370
- );
371
-
372
-
373
- --
374
- -- Name: @; Type: OPERATOR; Schema: public; Owner: -
375
- --
376
-
377
- CREATE OPERATOR @ (
378
- PROCEDURE = hs_contains,
379
- LEFTARG = hstore,
380
- RIGHTARG = hstore,
381
- COMMUTATOR = ~,
382
- RESTRICT = contsel,
383
- JOIN = contjoinsel
384
- );
385
-
386
-
387
- --
388
- -- Name: @>; Type: OPERATOR; Schema: public; Owner: -
389
- --
390
-
391
- CREATE OPERATOR @> (
392
- PROCEDURE = hs_contains,
393
- LEFTARG = hstore,
394
- RIGHTARG = hstore,
395
- COMMUTATOR = <@,
396
- RESTRICT = contsel,
397
- JOIN = contjoinsel
398
- );
399
-
400
-
401
- --
402
- -- Name: ||; Type: OPERATOR; Schema: public; Owner: -
403
- --
404
-
405
- CREATE OPERATOR || (
406
- PROCEDURE = hs_concat,
407
- LEFTARG = hstore,
408
- RIGHTARG = hstore
409
- );
410
-
411
-
412
- --
413
- -- Name: ~; Type: OPERATOR; Schema: public; Owner: -
414
- --
415
-
416
- CREATE OPERATOR ~ (
417
- PROCEDURE = hs_contained,
418
- LEFTARG = hstore,
419
- RIGHTARG = hstore,
420
- COMMUTATOR = @,
421
- RESTRICT = contsel,
422
- JOIN = contjoinsel
423
- );
424
-
425
-
426
- --
427
- -- Name: gin_hstore_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
428
- --
429
-
430
- CREATE OPERATOR CLASS gin_hstore_ops
431
- DEFAULT FOR TYPE hstore USING gin AS
432
- STORAGE text ,
433
- OPERATOR 7 @>(hstore,hstore) ,
434
- OPERATOR 9 ?(hstore,text) ,
435
- FUNCTION 1 bttextcmp(text,text) ,
436
- FUNCTION 2 gin_extract_hstore(internal,internal) ,
437
- FUNCTION 3 gin_extract_hstore_query(internal,internal,smallint,internal,internal) ,
438
- FUNCTION 4 gin_consistent_hstore(internal,smallint,internal,integer,internal,internal);
439
-
440
-
441
- --
442
- -- Name: gist_hstore_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
443
- --
444
-
445
- CREATE OPERATOR CLASS gist_hstore_ops
446
- DEFAULT FOR TYPE hstore USING gist AS
447
- STORAGE ghstore ,
448
- OPERATOR 7 @>(hstore,hstore) ,
449
- OPERATOR 9 ?(hstore,text) ,
450
- OPERATOR 13 @(hstore,hstore) ,
451
- FUNCTION 1 ghstore_consistent(internal,internal,integer,oid,internal) ,
452
- FUNCTION 2 ghstore_union(internal,internal) ,
453
- FUNCTION 3 ghstore_compress(internal) ,
454
- FUNCTION 4 ghstore_decompress(internal) ,
455
- FUNCTION 5 ghstore_penalty(internal,internal,internal) ,
456
- FUNCTION 6 ghstore_picksplit(internal,internal) ,
457
- FUNCTION 7 ghstore_same(internal,internal,internal);
458
-
459
-
460
- SET default_tablespace = '';
461
-
462
- SET default_with_oids = false;
463
-
464
- --
465
- -- Name: bars; Type: TABLE; Schema: public; Owner: -; Tablespace:
466
- --
467
-
468
- CREATE TABLE bars (
469
- id integer NOT NULL,
470
- data hstore,
471
- created_at timestamp without time zone,
472
- updated_at timestamp without time zone
473
- );
474
-
475
-
476
- --
477
- -- Name: bars_id_seq; Type: SEQUENCE; Schema: public; Owner: -
478
- --
479
-
480
- CREATE SEQUENCE bars_id_seq
481
- START WITH 1
482
- INCREMENT BY 1
483
- NO MAXVALUE
484
- NO MINVALUE
485
- CACHE 1;
486
-
487
-
488
- --
489
- -- Name: bars_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
490
- --
491
-
492
- ALTER SEQUENCE bars_id_seq OWNED BY bars.id;
493
-
494
-
495
- --
496
- -- Name: foos; Type: TABLE; Schema: public; Owner: -; Tablespace:
497
- --
498
-
499
- CREATE TABLE foos (
500
- id integer NOT NULL,
501
- data text,
502
- created_at timestamp without time zone,
503
- updated_at timestamp without time zone
504
- );
505
-
506
-
507
- --
508
- -- Name: foos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
509
- --
510
-
511
- CREATE SEQUENCE foos_id_seq
512
- START WITH 1
513
- INCREMENT BY 1
514
- NO MAXVALUE
515
- NO MINVALUE
516
- CACHE 1;
517
-
518
-
519
- --
520
- -- Name: foos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
521
- --
522
-
523
- ALTER SEQUENCE foos_id_seq OWNED BY foos.id;
524
-
525
-
526
- --
527
- -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
528
- --
529
-
530
- CREATE TABLE schema_migrations (
531
- version character varying(255) NOT NULL
532
- );
533
-
534
-
535
- --
536
- -- Name: id; Type: DEFAULT; Schema: public; Owner: -
537
- --
538
-
539
- ALTER TABLE bars ALTER COLUMN id SET DEFAULT nextval('bars_id_seq'::regclass);
540
-
541
-
542
- --
543
- -- Name: id; Type: DEFAULT; Schema: public; Owner: -
544
- --
545
-
546
- ALTER TABLE foos ALTER COLUMN id SET DEFAULT nextval('foos_id_seq'::regclass);
547
-
548
-
549
- --
550
- -- Name: bars_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
551
- --
552
-
553
- ALTER TABLE ONLY bars
554
- ADD CONSTRAINT bars_pkey PRIMARY KEY (id);
555
-
556
-
557
- --
558
- -- Name: foos_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
559
- --
560
-
561
- ALTER TABLE ONLY foos
562
- ADD CONSTRAINT foos_pkey PRIMARY KEY (id);
563
-
564
-
565
- --
566
- -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
567
- --
568
-
569
- CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
570
-
571
-
572
- --
573
- -- PostgreSQL database dump complete
574
- --
575
-
576
- INSERT INTO schema_migrations (version) VALUES ('20100906191457');
577
-
578
- INSERT INTO schema_migrations (version) VALUES ('20100906191506');
579
-
580
- INSERT INTO schema_migrations (version) VALUES ('20100906191151');