railz_lite 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railz_lite/models/sql_object.rb +5 -5
- data/lib/railz_lite/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9da64c4f69092de235e6a5c3602a2e6f8fc6be5ac6e3fb88b6621246e8dc3bc4
|
4
|
+
data.tar.gz: 8c44980e47498b3be67ce7d894d3fe2a7eb8c18335e7fe68b56b74f198fe0cd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b0ffdd0f01715fadc5b5d1a9d1c9cefc5b01295d5b46a1b05c9ff4794b0dc8cd789b96adec8a556602835a7a7cbac57fa38bff8ae18ceef4220afe6c7c3802
|
7
|
+
data.tar.gz: 56f7965f2bd969c47924b173933566a147d5718d0495d32dc9041afb5dd4c6b44a33d480faee63c972e4ebd03336f4731591d167b6e13bbaf56d054dc1f19dce
|
@@ -13,7 +13,7 @@ module RailzLite
|
|
13
13
|
SELECT
|
14
14
|
*
|
15
15
|
FROM
|
16
|
-
#{table_name}
|
16
|
+
#{table_name};
|
17
17
|
SQL
|
18
18
|
@columns.first.map(&:to_sym)
|
19
19
|
end
|
@@ -42,7 +42,7 @@ module RailzLite
|
|
42
42
|
SELECT
|
43
43
|
*
|
44
44
|
FROM
|
45
|
-
#{table_name}
|
45
|
+
#{table_name};
|
46
46
|
SQL
|
47
47
|
parse_all(results)
|
48
48
|
end
|
@@ -58,7 +58,7 @@ module RailzLite
|
|
58
58
|
FROM
|
59
59
|
#{table_name}
|
60
60
|
WHERE
|
61
|
-
ID =
|
61
|
+
ID = ?;
|
62
62
|
SQL
|
63
63
|
|
64
64
|
return nil if target.empty?
|
@@ -86,7 +86,7 @@ module RailzLite
|
|
86
86
|
INSERT INTO
|
87
87
|
#{self.class.table_name}(#{self.class.columns.join(',')})
|
88
88
|
VALUES
|
89
|
-
(#{(["?"] * attribute_values.length).join(',')})
|
89
|
+
(#{(["?"] * attribute_values.length).join(',')});
|
90
90
|
SQL
|
91
91
|
self.id = last_row_id
|
92
92
|
end
|
@@ -98,7 +98,7 @@ module RailzLite
|
|
98
98
|
SET
|
99
99
|
#{self.class.columns.map { |attr_name| "#{attr_name}=?"}.join(',')}
|
100
100
|
WHERE
|
101
|
-
id =
|
101
|
+
id = ?;
|
102
102
|
SQL
|
103
103
|
end
|
104
104
|
|
data/lib/railz_lite/version.rb
CHANGED