recordx_sqlite 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/recordx_sqlite.rb +10 -0
- data.tar.gz.sig +4 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad0d7ef629e3db6738dd9bfd95483d467890450
|
4
|
+
data.tar.gz: 0e6f0a1e9be04c124105d60df1b2ca0d5369c5d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2594ca5d3863e31b1cc5ec12df17d0225bd5dbca7fe78f41b3e6d7794bc413204c96de2c4ba3f7f7216fb55227ddcc25565600940615eb131d4d60653da81771
|
7
|
+
data.tar.gz: 60c6a34debb9bdc69bca558b889839e5520d129d944f67010da0cf2e662f5350ea0404d7972f6138579b4dc1fcfaa6032c0f7a47fc6817195e56f3554e9c67d5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/recordx_sqlite.rb
CHANGED
@@ -55,10 +55,20 @@ class RecordxSqlite
|
|
55
55
|
|
56
56
|
:create
|
57
57
|
end
|
58
|
+
|
59
|
+
def delete(id)
|
60
|
+
|
61
|
+
sql = "DELETE FROM #{@table} WHERE #{@primary_key}='#{id}'"
|
62
|
+
@db.execute sql
|
63
|
+
|
64
|
+
:delete
|
65
|
+
end
|
58
66
|
|
59
67
|
def find(id)
|
68
|
+
|
60
69
|
query(@sql) unless @a
|
61
70
|
@a.find {|x| x.method(@primary_key).call == id}
|
71
|
+
|
62
72
|
end
|
63
73
|
|
64
74
|
def query(sql=@sql)
|
data.tar.gz.sig
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recordx_sqlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
pewreBQ0QCPuPbV1FPlyX5N5qsGIMHFIYqUlaykOA8156Y6fbIbqQsLwxaSr8WkD
|
32
32
|
eojajR/fTTvliw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-07-01 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3
|
metadata.gz.sig
CHANGED
Binary file
|