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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b39ece816738cb30475c51a1c909e6d28def0bb6
4
- data.tar.gz: ca7f8cf2c3e34d4d211b63c2d33e2938737f276c
3
+ metadata.gz: 8ad0d7ef629e3db6738dd9bfd95483d467890450
4
+ data.tar.gz: 0e6f0a1e9be04c124105d60df1b2ca0d5369c5d7
5
5
  SHA512:
6
- metadata.gz: feb4feb620c5fdf74a688e193b4a46fcbacedde444a267d1b78dd20ea42c148491f75c4d095b7928d49b405c0b6c73b206554b39e601080d58cb00afcf7f0923
7
- data.tar.gz: e94d739dcbc954dfdacbe9424c4c0216efef87a49614b4399540b52be3bb8603b958b0808a1381daf4c2415d1eb90304a4a105f14f55ee588e2af160c82e7c8b
6
+ metadata.gz: 2594ca5d3863e31b1cc5ec12df17d0225bd5dbca7fe78f41b3e6d7794bc413204c96de2c4ba3f7f7216fb55227ddcc25565600940615eb131d4d60653da81771
7
+ data.tar.gz: 60c6a34debb9bdc69bca558b889839e5520d129d944f67010da0cf2e662f5350ea0404d7972f6138579b4dc1fcfaa6032c0f7a47fc6817195e56f3554e9c67d5
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
@@ -1,2 +1,4 @@
1
- p���W7�/& eWsb�o����˧��]>���k'�
2
- {9�7a�G�J��W\w�w[/&����ޖʢ[�w,,E�
1
+ ui��嫊
2
+ ;
3
+ �h$�un�V��ӧ��ߑ�P�+'���H�T"�
4
+ �yM�΀ّ�0h��,���AU|����w��ŏ���MS?т�y�����Z`+y��7���l-݁|3�ڵS�C�xCJ���=z̕m�ya��\ ;#7?�˛�tC���L
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.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-06-23 00:00:00.000000000 Z
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