libsql 0.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.md +60 -0
  3. data/HISTORY.md +6 -0
  4. data/LICENSE +31 -0
  5. data/Manifest.txt +96 -0
  6. data/README.md +59 -0
  7. data/Rakefile +28 -0
  8. data/TODO.md +57 -0
  9. data/examples/a.rb +9 -0
  10. data/examples/blob.rb +106 -0
  11. data/examples/define_aggregate.rb +75 -0
  12. data/examples/define_function.rb +104 -0
  13. data/examples/fts5.rb +152 -0
  14. data/examples/gem-db.rb +94 -0
  15. data/examples/schema-info.rb +34 -0
  16. data/ext/libsql/c/extconf.rb +86 -0
  17. data/ext/libsql/c/gen_constants.rb +353 -0
  18. data/ext/libsql/c/libsql_blob.c +240 -0
  19. data/ext/libsql/c/libsql_constants.c +1518 -0
  20. data/ext/libsql/c/libsql_database.c +1188 -0
  21. data/ext/libsql/c/libsql_ext.c +383 -0
  22. data/ext/libsql/c/libsql_ext.h +149 -0
  23. data/ext/libsql/c/libsql_statement.c +649 -0
  24. data/ext/libsql/c/notes.txt +134 -0
  25. data/ext/libsql/c/sqlite3.c +247030 -0
  26. data/ext/libsql/c/sqlite3.h +13436 -0
  27. data/lib/libsql/3.0/libsql_ext.so +0 -0
  28. data/lib/libsql/3.1/libsql_ext.so +0 -0
  29. data/lib/libsql/3.2/libsql_ext.so +0 -0
  30. data/lib/libsql/aggregate.rb +73 -0
  31. data/lib/libsql/blob.rb +186 -0
  32. data/lib/libsql/boolean.rb +42 -0
  33. data/lib/libsql/busy_timeout.rb +47 -0
  34. data/lib/libsql/column.rb +99 -0
  35. data/lib/libsql/csv_table_importer.rb +75 -0
  36. data/lib/libsql/database.rb +933 -0
  37. data/lib/libsql/function.rb +61 -0
  38. data/lib/libsql/index.rb +43 -0
  39. data/lib/libsql/memory_database.rb +15 -0
  40. data/lib/libsql/paths.rb +80 -0
  41. data/lib/libsql/profile_tap.rb +131 -0
  42. data/lib/libsql/progress_handler.rb +21 -0
  43. data/lib/libsql/schema.rb +225 -0
  44. data/lib/libsql/sqlite3/constants.rb +95 -0
  45. data/lib/libsql/sqlite3/database/function.rb +48 -0
  46. data/lib/libsql/sqlite3/database/status.rb +68 -0
  47. data/lib/libsql/sqlite3/libsql_version.rb +32 -0
  48. data/lib/libsql/sqlite3/status.rb +60 -0
  49. data/lib/libsql/sqlite3/version.rb +55 -0
  50. data/lib/libsql/sqlite3.rb +7 -0
  51. data/lib/libsql/statement.rb +421 -0
  52. data/lib/libsql/table.rb +91 -0
  53. data/lib/libsql/taps/console.rb +27 -0
  54. data/lib/libsql/taps/io.rb +74 -0
  55. data/lib/libsql/taps.rb +2 -0
  56. data/lib/libsql/trace_tap.rb +35 -0
  57. data/lib/libsql/type_map.rb +63 -0
  58. data/lib/libsql/type_maps/default_map.rb +166 -0
  59. data/lib/libsql/type_maps/storage_map.rb +38 -0
  60. data/lib/libsql/type_maps/text_map.rb +21 -0
  61. data/lib/libsql/version.rb +8 -0
  62. data/lib/libsql/view.rb +26 -0
  63. data/lib/libsql-ruby.rb +1 -0
  64. data/lib/libsql.rb +51 -0
  65. data/spec/aggregate_spec.rb +158 -0
  66. data/spec/blob_spec.rb +78 -0
  67. data/spec/boolean_spec.rb +24 -0
  68. data/spec/busy_handler.rb +157 -0
  69. data/spec/data/iso-3166-country.txt +242 -0
  70. data/spec/data/iso-3166-schema.sql +22 -0
  71. data/spec/data/iso-3166-subcountry.txt +3995 -0
  72. data/spec/data/make-iso-db.sh +12 -0
  73. data/spec/database_spec.rb +505 -0
  74. data/spec/default_map_spec.rb +92 -0
  75. data/spec/function_spec.rb +78 -0
  76. data/spec/integeration_spec.rb +97 -0
  77. data/spec/iso_3166_database.rb +58 -0
  78. data/spec/json_spec.rb +24 -0
  79. data/spec/libsql_spec.rb +4 -0
  80. data/spec/paths_spec.rb +28 -0
  81. data/spec/progress_handler_spec.rb +91 -0
  82. data/spec/rtree_spec.rb +66 -0
  83. data/spec/schema_spec.rb +131 -0
  84. data/spec/spec_helper.rb +48 -0
  85. data/spec/sqlite3/constants_spec.rb +108 -0
  86. data/spec/sqlite3/database_status_spec.rb +36 -0
  87. data/spec/sqlite3/libsql_version_spec.rb +16 -0
  88. data/spec/sqlite3/status_spec.rb +22 -0
  89. data/spec/sqlite3/version_spec.rb +28 -0
  90. data/spec/sqlite3_spec.rb +53 -0
  91. data/spec/statement_spec.rb +168 -0
  92. data/spec/storage_map_spec.rb +38 -0
  93. data/spec/tap_spec.rb +57 -0
  94. data/spec/text_map_spec.rb +20 -0
  95. data/spec/type_map_spec.rb +14 -0
  96. data/spec/version_spec.rb +8 -0
  97. data/tasks/custom.rake +134 -0
  98. data/tasks/default.rake +257 -0
  99. data/tasks/extension.rake +29 -0
  100. data/tasks/this.rb +208 -0
  101. metadata +330 -0
metadata ADDED
@@ -0,0 +1,330 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: libsql
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: x86-mingw32
6
+ authors:
7
+ - Jeremy Hinegardner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: arrayfields
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: debug
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec_junit_formatter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '13.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '13.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake-compiler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake-compiler-dock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rdoc
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '6.5'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '6.5'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.21'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.21'
139
+ - !ruby/object:Gem::Dependency
140
+ name: archive-zip
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.12'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.12'
153
+ description: libsql embeds the libsql fork of the SQLite database engine as a ruby
154
+ extension. There is no need to install libsql separately.
155
+ email: jeremy@copiousfreetime.org
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files:
159
+ - CONTRIBUTING.md
160
+ - HISTORY.md
161
+ - Manifest.txt
162
+ - README.md
163
+ - TODO.md
164
+ - ext/libsql/c/notes.txt
165
+ - spec/data/iso-3166-country.txt
166
+ - spec/data/iso-3166-subcountry.txt
167
+ files:
168
+ - CONTRIBUTING.md
169
+ - HISTORY.md
170
+ - LICENSE
171
+ - Manifest.txt
172
+ - README.md
173
+ - Rakefile
174
+ - TODO.md
175
+ - examples/a.rb
176
+ - examples/blob.rb
177
+ - examples/define_aggregate.rb
178
+ - examples/define_function.rb
179
+ - examples/fts5.rb
180
+ - examples/gem-db.rb
181
+ - examples/schema-info.rb
182
+ - ext/libsql/c/extconf.rb
183
+ - ext/libsql/c/gen_constants.rb
184
+ - ext/libsql/c/libsql_blob.c
185
+ - ext/libsql/c/libsql_constants.c
186
+ - ext/libsql/c/libsql_database.c
187
+ - ext/libsql/c/libsql_ext.c
188
+ - ext/libsql/c/libsql_ext.h
189
+ - ext/libsql/c/libsql_statement.c
190
+ - ext/libsql/c/notes.txt
191
+ - ext/libsql/c/sqlite3.c
192
+ - ext/libsql/c/sqlite3.h
193
+ - lib/libsql-ruby.rb
194
+ - lib/libsql.rb
195
+ - lib/libsql/3.0/libsql_ext.so
196
+ - lib/libsql/3.1/libsql_ext.so
197
+ - lib/libsql/3.2/libsql_ext.so
198
+ - lib/libsql/aggregate.rb
199
+ - lib/libsql/blob.rb
200
+ - lib/libsql/boolean.rb
201
+ - lib/libsql/busy_timeout.rb
202
+ - lib/libsql/column.rb
203
+ - lib/libsql/csv_table_importer.rb
204
+ - lib/libsql/database.rb
205
+ - lib/libsql/function.rb
206
+ - lib/libsql/index.rb
207
+ - lib/libsql/memory_database.rb
208
+ - lib/libsql/paths.rb
209
+ - lib/libsql/profile_tap.rb
210
+ - lib/libsql/progress_handler.rb
211
+ - lib/libsql/schema.rb
212
+ - lib/libsql/sqlite3.rb
213
+ - lib/libsql/sqlite3/constants.rb
214
+ - lib/libsql/sqlite3/database/function.rb
215
+ - lib/libsql/sqlite3/database/status.rb
216
+ - lib/libsql/sqlite3/libsql_version.rb
217
+ - lib/libsql/sqlite3/status.rb
218
+ - lib/libsql/sqlite3/version.rb
219
+ - lib/libsql/statement.rb
220
+ - lib/libsql/table.rb
221
+ - lib/libsql/taps.rb
222
+ - lib/libsql/taps/console.rb
223
+ - lib/libsql/taps/io.rb
224
+ - lib/libsql/trace_tap.rb
225
+ - lib/libsql/type_map.rb
226
+ - lib/libsql/type_maps/default_map.rb
227
+ - lib/libsql/type_maps/storage_map.rb
228
+ - lib/libsql/type_maps/text_map.rb
229
+ - lib/libsql/version.rb
230
+ - lib/libsql/view.rb
231
+ - spec/aggregate_spec.rb
232
+ - spec/blob_spec.rb
233
+ - spec/boolean_spec.rb
234
+ - spec/busy_handler.rb
235
+ - spec/data/iso-3166-country.txt
236
+ - spec/data/iso-3166-schema.sql
237
+ - spec/data/iso-3166-subcountry.txt
238
+ - spec/data/make-iso-db.sh
239
+ - spec/database_spec.rb
240
+ - spec/default_map_spec.rb
241
+ - spec/function_spec.rb
242
+ - spec/integeration_spec.rb
243
+ - spec/iso_3166_database.rb
244
+ - spec/json_spec.rb
245
+ - spec/libsql_spec.rb
246
+ - spec/paths_spec.rb
247
+ - spec/progress_handler_spec.rb
248
+ - spec/rtree_spec.rb
249
+ - spec/schema_spec.rb
250
+ - spec/spec_helper.rb
251
+ - spec/sqlite3/constants_spec.rb
252
+ - spec/sqlite3/database_status_spec.rb
253
+ - spec/sqlite3/libsql_version_spec.rb
254
+ - spec/sqlite3/status_spec.rb
255
+ - spec/sqlite3/version_spec.rb
256
+ - spec/sqlite3_spec.rb
257
+ - spec/statement_spec.rb
258
+ - spec/storage_map_spec.rb
259
+ - spec/tap_spec.rb
260
+ - spec/text_map_spec.rb
261
+ - spec/type_map_spec.rb
262
+ - spec/version_spec.rb
263
+ - tasks/custom.rake
264
+ - tasks/default.rake
265
+ - tasks/extension.rake
266
+ - tasks/this.rb
267
+ homepage: http://github.com/copiousfreetime/libsql-ruby
268
+ licenses:
269
+ - BSD-3-Clause
270
+ metadata: {}
271
+ post_install_message:
272
+ rdoc_options:
273
+ - "--main"
274
+ - README.md
275
+ - "--markup"
276
+ - tomdoc
277
+ require_paths:
278
+ - lib
279
+ required_ruby_version: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - ">="
282
+ - !ruby/object:Gem::Version
283
+ version: '3.0'
284
+ - - "<"
285
+ - !ruby/object:Gem::Version
286
+ version: 3.3.dev
287
+ required_rubygems_version: !ruby/object:Gem::Requirement
288
+ requirements:
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: '0'
292
+ requirements: []
293
+ rubygems_version: 3.3.26
294
+ signing_key:
295
+ specification_version: 4
296
+ summary: libsql embeds the libsql fork of the SQLite database engine as a ruby extension.
297
+ There is no need to install libsql separately.
298
+ test_files:
299
+ - spec/aggregate_spec.rb
300
+ - spec/blob_spec.rb
301
+ - spec/boolean_spec.rb
302
+ - spec/busy_handler.rb
303
+ - spec/data/iso-3166-country.txt
304
+ - spec/data/iso-3166-schema.sql
305
+ - spec/data/iso-3166-subcountry.txt
306
+ - spec/data/make-iso-db.sh
307
+ - spec/database_spec.rb
308
+ - spec/default_map_spec.rb
309
+ - spec/function_spec.rb
310
+ - spec/integeration_spec.rb
311
+ - spec/iso_3166_database.rb
312
+ - spec/json_spec.rb
313
+ - spec/libsql_spec.rb
314
+ - spec/paths_spec.rb
315
+ - spec/progress_handler_spec.rb
316
+ - spec/rtree_spec.rb
317
+ - spec/schema_spec.rb
318
+ - spec/spec_helper.rb
319
+ - spec/sqlite3/constants_spec.rb
320
+ - spec/sqlite3/database_status_spec.rb
321
+ - spec/sqlite3/libsql_version_spec.rb
322
+ - spec/sqlite3/status_spec.rb
323
+ - spec/sqlite3/version_spec.rb
324
+ - spec/sqlite3_spec.rb
325
+ - spec/statement_spec.rb
326
+ - spec/storage_map_spec.rb
327
+ - spec/tap_spec.rb
328
+ - spec/text_map_spec.rb
329
+ - spec/type_map_spec.rb
330
+ - spec/version_spec.rb