extralite 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/ext/extralite/extralite.c +2 -2
- data/lib/extralite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6bb308b421895a192cdbc83d022e105ec1fbd4060d8f8898a71f9f13741bd18
|
4
|
+
data.tar.gz: b044f3d91692b19f7c0cc5912896cec1458c3101ebb5f058fe09c147a3cf00ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bb40f58b77290b083466563465232cc3aadfa8cb68d305d08edc7fd4b1344d256af45f84f7efe8765fe00b604010a071b5966fd15abb63896b7d843337ce683
|
7
|
+
data.tar.gz: b29ee3ff34f307d9f45515971ecd0b147fe236f6c2d95e4b48cdd1a91b3d9847d477fee2c667836f83db5c68f559a0f4f2129d12b8d5d1fe5f075ca2cdd6d05c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
## What is Extralite?
|
8
8
|
|
9
|
-
Extralite is an extra-lightweight (
|
9
|
+
Extralite is an extra-lightweight (less than 400 lines of C-code) SQLite3 wrapper for
|
10
10
|
Ruby. It provides a single class with a minimal set of methods to interact with
|
11
11
|
an SQLite3 database.
|
12
12
|
|
@@ -71,6 +71,10 @@ db.filename #=> "/tmp/my.db"
|
|
71
71
|
|
72
72
|
# load an extension
|
73
73
|
db.load_extension('/path/to/extension.so')
|
74
|
+
|
75
|
+
# close database
|
76
|
+
db.close
|
77
|
+
db.closed? #=> true
|
74
78
|
```
|
75
79
|
|
76
80
|
## Why not just use the sqlite3 gem?
|
data/ext/extralite/extralite.c
CHANGED
@@ -94,7 +94,7 @@ inline VALUE get_column_value(sqlite3_stmt *stmt, int col, int type) {
|
|
94
94
|
case SQLITE_NULL:
|
95
95
|
return Qnil;
|
96
96
|
case SQLITE_INTEGER:
|
97
|
-
return
|
97
|
+
return LL2NUM(sqlite3_column_int64(stmt, col));
|
98
98
|
case SQLITE_FLOAT:
|
99
99
|
return DBL2NUM(sqlite3_column_double(stmt, col));
|
100
100
|
case SQLITE_TEXT:
|
@@ -114,7 +114,7 @@ static inline void bind_parameter_value(sqlite3_stmt *stmt, int pos, VALUE value
|
|
114
114
|
sqlite3_bind_null(stmt, pos);
|
115
115
|
return;
|
116
116
|
case T_FIXNUM:
|
117
|
-
|
117
|
+
sqlite3_bind_int64(stmt, pos, NUM2LL(value));
|
118
118
|
return;
|
119
119
|
case T_FLOAT:
|
120
120
|
sqlite3_bind_double(stmt, pos, NUM2DBL(value));
|
data/lib/extralite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extralite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|