dburl 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/bin/dburl +8 -0
- data/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: 1d1e26d3d23c5ea338aeaf76de4cca50620ffed0
|
4
|
+
data.tar.gz: 915c9f1b95fefd51f75e0c14ac73fc2243157fe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd823520d51bef6f935b653525d28367dc5b5613094ee99cbb417f0feab6f208adc4694e1534cb456cbd308dafd03a211b7464e1f2ea84b45f0c718ef9baa4f
|
7
|
+
data.tar.gz: 11403780f40a6611952debbec20d6ed137675cddd192be5ef40d5495f34cb8cc9714ab8271aaf47b88b89b73b481bc2798af995cf9c58b0ede8a30736096a0e9
|
data/README.md
CHANGED
@@ -7,9 +7,10 @@ be dropped into a `psql` shell.
|
|
7
7
|
|
8
8
|
**Currently Supported**
|
9
9
|
* Postgres
|
10
|
+
* Mysql
|
10
11
|
* Redis
|
11
12
|
|
12
|
-
...and adding a new one is [easy](https://github.com/dashkb/dburl/blob/master/bin/dburl#
|
13
|
+
...and adding a new one is [easy](https://github.com/dashkb/dburl/blob/master/bin/dburl#L34)!
|
13
14
|
|
14
15
|
### Installation
|
15
16
|
|
data/bin/dburl
CHANGED
@@ -54,6 +54,14 @@ when 'redis'
|
|
54
54
|
cmd += " -p #{db.port}" if db.port
|
55
55
|
cmd += " -a #{db.password}" if db.password
|
56
56
|
cmd += " -n #{db.path[1..-1]}" if db.path
|
57
|
+
when 'mysql'
|
58
|
+
cmd = 'mysql'
|
59
|
+
|
60
|
+
cmd += " -h #{db.host}" if db.host
|
61
|
+
cmd += " -P #{db.port}" if db.port
|
62
|
+
cmd += " -u #{db.user}" if db.user
|
63
|
+
cmd += " -D #{db.path[1..-1]}" if db.path
|
64
|
+
cmd += " -P #{db.password}" if db.password
|
57
65
|
else
|
58
66
|
puts "This script doesn't support #{db.scheme} yet."
|
59
67
|
puts 'Please add it and open a pull request.'
|
data/version.rb
CHANGED