sqlite3-static 3.14.1 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.rdoc +6 -1
- data/Manifest.txt +1 -0
- data/README.rdoc +6 -2
- data/ext/sqlite3/database.c +1 -1
- data/ext/sqlite3/extconf.rb +9 -9
- data/ext/sqlite3/sqlite3.c +12 -3
- data/ext/sqlite3/sqlite3.h +981 -496
- data/ext/sqlite3/sqlite3_core.c +21396 -11656
- data/lib/sqlite3/database.rb +1 -10
- data/lib/sqlite3/pragmas.rb +0 -9
- data/lib/sqlite3/version.rb +2 -2
- metadata +3 -4
data/lib/sqlite3/database.rb
CHANGED
|
@@ -120,10 +120,6 @@ in version 2.0.0.
|
|
|
120
120
|
# See also #execute2, #query, and #execute_batch for additional ways of
|
|
121
121
|
# executing statements.
|
|
122
122
|
def execute sql, bind_vars = [], *args, &block
|
|
123
|
-
# FIXME: This is a terrible hack and should be removed but is required
|
|
124
|
-
# for older versions of rails
|
|
125
|
-
hack = Object.const_defined?(:ActiveRecord) && sql =~ /^PRAGMA index_list/
|
|
126
|
-
|
|
127
123
|
if bind_vars.nil? || !args.empty?
|
|
128
124
|
if args.empty?
|
|
129
125
|
bind_vars = []
|
|
@@ -154,12 +150,7 @@ Support for bind parameters as *args will be removed in 2.0.0.
|
|
|
154
150
|
else
|
|
155
151
|
if @results_as_hash
|
|
156
152
|
stmt.map { |row|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
# FIXME UGH TERRIBLE HACK!
|
|
160
|
-
h['unique'] = h['unique'].to_s if hack
|
|
161
|
-
|
|
162
|
-
h
|
|
153
|
+
type_translation ? row : ordered_map_for(columns, row)
|
|
163
154
|
}
|
|
164
155
|
else
|
|
165
156
|
stmt.to_a
|
data/lib/sqlite3/pragmas.rb
CHANGED
|
@@ -101,15 +101,6 @@ module SQLite3
|
|
|
101
101
|
# The list of valid WAL checkpoints.
|
|
102
102
|
WAL_CHECKPOINTS = [ [ 'passive' ], [ 'full' ], [ 'restart' ], [ 'truncate' ] ]
|
|
103
103
|
|
|
104
|
-
# Does an integrity check on the database. If the check fails, a
|
|
105
|
-
# SQLite3::Exception will be raised. Otherwise it
|
|
106
|
-
# returns silently.
|
|
107
|
-
def integrity_check
|
|
108
|
-
execute( "PRAGMA integrity_check" ) do |row|
|
|
109
|
-
raise Exception, row[0] if row[0] != "ok"
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
104
|
def application_id
|
|
114
105
|
get_int_pragma "application_id"
|
|
115
106
|
end
|
data/lib/sqlite3/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sqlite3-static
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jamis Buck
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
|
15
15
|
dependencies: []
|
|
16
16
|
description: SQLite3 bindings with embedded SQLite library.
|
|
17
17
|
email:
|
|
@@ -73,9 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
73
73
|
version: '0'
|
|
74
74
|
requirements: []
|
|
75
75
|
rubyforge_project:
|
|
76
|
-
rubygems_version: 2.
|
|
76
|
+
rubygems_version: 2.7.6
|
|
77
77
|
signing_key:
|
|
78
78
|
specification_version: 4
|
|
79
79
|
summary: SQLite3 bindings with embedded SQLite library, requiring no external dependencies.
|
|
80
80
|
test_files: []
|
|
81
|
-
has_rdoc:
|