sqlite-ruby 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/faq/faq.html +28 -28
- data/lib/sqlite/resultset.rb +2 -2
- data/lib/sqlite/statement.rb +1 -1
- data/lib/sqlite/version.rb +1 -1
- data/test/lib/sqlite.rb +34 -0
- data/test/lib/sqlite/database.rb +682 -0
- data/test/lib/sqlite/parsed_statement.rb +233 -0
- data/test/lib/sqlite/pragmas.rb +236 -0
- data/test/lib/sqlite/resultset.rb +168 -0
- data/test/lib/sqlite/statement.rb +177 -0
- data/test/lib/sqlite/translator.rb +135 -0
- data/test/lib/sqlite/version.rb +45 -0
- data/test/lib/sqlite_api.so +0 -0
- data/test/tc_database.rb +4 -0
- metadata +13 -2
@@ -0,0 +1,45 @@
|
|
1
|
+
#--
|
2
|
+
# =============================================================================
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
|
4
|
+
# All rights reserved.
|
5
|
+
#
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
7
|
+
# modification, are permitted provided that the following conditions are met:
|
8
|
+
#
|
9
|
+
# * Redistributions of source code must retain the above copyright notice,
|
10
|
+
# this list of conditions and the following disclaimer.
|
11
|
+
#
|
12
|
+
# * Redistributions in binary form must reproduce the above copyright
|
13
|
+
# notice, this list of conditions and the following disclaimer in the
|
14
|
+
# documentation and/or other materials provided with the distribution.
|
15
|
+
#
|
16
|
+
# * The names of its contributors may not be used to endorse or promote
|
17
|
+
# products derived from this software without specific prior written
|
18
|
+
# permission.
|
19
|
+
#
|
20
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
21
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
22
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
24
|
+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
25
|
+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
26
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
27
|
+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
28
|
+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
29
|
+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
+
# =============================================================================
|
31
|
+
#++
|
32
|
+
|
33
|
+
module SQLite
|
34
|
+
|
35
|
+
module Version
|
36
|
+
|
37
|
+
MAJOR = 2
|
38
|
+
MINOR = 2
|
39
|
+
TINY = 1
|
40
|
+
|
41
|
+
STRING = [ MAJOR, MINOR, TINY ].join( "." )
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
Binary file
|
data/test/tc_database.rb
CHANGED
@@ -292,6 +292,10 @@ class TC_Database < Test::Unit::TestCase
|
|
292
292
|
|
293
293
|
new_count = @db.get_first_value( "select count(*) from A" ).to_i
|
294
294
|
assert_equal new_count, count
|
295
|
+
|
296
|
+
assert_nothing_raised do
|
297
|
+
@db.execute_batch( "delete from A where age = 200;\n" )
|
298
|
+
end
|
295
299
|
end
|
296
300
|
|
297
301
|
def test_transaction_block_errors
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
|
|
3
3
|
specification_version: 1
|
4
4
|
name: sqlite-ruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 2.2.
|
7
|
-
date: 2004-
|
6
|
+
version: 2.2.1
|
7
|
+
date: 2004-11-04
|
8
8
|
summary: SQLite/Ruby is a module to allow Ruby scripts to interface with a SQLite database.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/sqlite/version.rb
|
43
43
|
- lib/sqlite/pragmas.rb
|
44
44
|
- test/db
|
45
|
+
- test/lib
|
45
46
|
- test/tc_parsed_statement.rb
|
46
47
|
- test/tc_api_core.rb
|
47
48
|
- test/tests.rb
|
@@ -51,6 +52,16 @@ files:
|
|
51
52
|
- test/tc_type_translation.rb
|
52
53
|
- test/tc_database.rb
|
53
54
|
- test/db/fixtures.sql
|
55
|
+
- test/lib/sqlite_api.so
|
56
|
+
- test/lib/sqlite.rb
|
57
|
+
- test/lib/sqlite
|
58
|
+
- test/lib/sqlite/statement.rb
|
59
|
+
- test/lib/sqlite/database.rb
|
60
|
+
- test/lib/sqlite/parsed_statement.rb
|
61
|
+
- test/lib/sqlite/translator.rb
|
62
|
+
- test/lib/sqlite/resultset.rb
|
63
|
+
- test/lib/sqlite/version.rb
|
64
|
+
- test/lib/sqlite/pragmas.rb
|
54
65
|
- README
|
55
66
|
test_files:
|
56
67
|
- test/tests.rb
|