jungle_path 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jungle_path/db_access/meta/table.rb +4 -4
- data/lib/jungle_path/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9081f327d18ab46ec74fc318ea2df73950649b9b
|
4
|
+
data.tar.gz: 50e662a722312d876d55ea2de8c4d19b69618687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c53cc70a52f86416a167b19e849abc4d312130f5f53558f23ce54d7da555cd21b3dbebceada9c793617334344d36449c645643d3d4cf1193af9c5bd92033fdd0
|
7
|
+
data.tar.gz: 4a0f0d3e9939cd27d759b4cc17866aba088c5010f7b4bad56293875caf642d1882096cb680521a8a367ff7bc0091c2cdcc6058780729779c1847e1f26e2b5aad
|
@@ -5,19 +5,19 @@ module JunglePath
|
|
5
5
|
module DBAccess
|
6
6
|
module Meta
|
7
7
|
module Table
|
8
|
-
def drop? db, table_name
|
8
|
+
def self.drop? db, table_name
|
9
9
|
db.base.drop_table?(table_name.to_sym)
|
10
10
|
end
|
11
11
|
|
12
|
-
def exists? db, table_name
|
12
|
+
def self.exists? db, table_name
|
13
13
|
db.base.table_exists?(table_name.to_sym)
|
14
14
|
end
|
15
15
|
|
16
|
-
def create_like(db, from_table, to_table)
|
16
|
+
def self.create_like(db, from_table, to_table)
|
17
17
|
db.base.run("create table #{to_table} (like #{from_table} including indexes)")
|
18
18
|
end
|
19
19
|
|
20
|
-
def copy_data(db, from_table, to_table)
|
20
|
+
def self.copy_data(db, from_table, to_table)
|
21
21
|
db.base.run("insert into #{to_table} select * from #{from_table}")
|
22
22
|
end
|
23
23
|
end
|
data/lib/jungle_path/version.rb
CHANGED