File tree Expand file tree Collapse file tree 3 files changed +71
-0
lines changed Expand file tree Collapse file tree 3 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ DISCLAMER: since it is a community driven project it is only smoke-tested and co
24
24
| [ pma] ( pma ) | [ PhpMyAdmin] ( https://www.phpmyadmin.net/ ) database management tool | MySQL |
25
25
| [ rabbitmq] ( rabbitmq ) | [ RabbitMQ] ( https://www.rabbitmq.com/ ) Message Broker | RabbitMQ |
26
26
| [ redis] ( redis ) | Add [ Redis] ( https://redis.io/ ) to current project | |
27
+ | [ sequelace] ( sequelace ) | Launches [ SequelAce] ( https://github.com/Sequel-Ace/Sequel-Ace ) with the connection information for current project. | macOS |
27
28
| [ sequelpro] ( sequelpro ) | Launches [ SequelPro] ( https://www.sequelpro.com ) with the connection information for current project. | macOS |
28
29
| [ simpletest] ( simpletest ) | Runs SimpleTest tests in Drupal 7 and 8 | Drupal |
29
30
| [ sitediff] ( sitediff ) | Runs Sitediff tests in your Docksal project | |
Original file line number Diff line number Diff line change
1
+ # SequelAce Connection
2
+
3
+ Launches [ SequelAce] ( https://github.com/Sequel-Ace/Sequel-Ace ) with the connection information for your project.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # # Opens SequelAce
4
+ # #
5
+ # # Usage: fin sequelace
6
+
7
+ # Abort if anything fails
8
+ set -e
9
+
10
+ container_port=$( docker ps --all --filter ' label=com.docker.compose.service=db' --filter " label=com.docker.compose.project=${COMPOSE_PROJECT_NAME_SAFE} " --format ' {{.Ports}}' | sed ' s/.*0.0.0.0://g' | sed ' s/->.*//g' )
11
+ HOST=${VIRTUAL_HOST}
12
+ DB=${MYSQL_DATABASE:- default}
13
+ USER=${MYSQL_USER:- user}
14
+ PASS=${MYSQL_PASSWORD:- user}
15
+ NAME=${COMPOSE_PROJECT_NAME}
16
+
17
+ PORT=${PORT:- $container_port }
18
+
19
+ FILENAME=/tmp/docksal-sequelace-${RANDOM} .spf
20
+ cat << EOT >> $FILENAME
21
+ <?xml version="1.0" encoding="UTF-8"?>
22
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
23
+ <plist version="1.0">
24
+ <dict>
25
+ <key>ContentFilters</key>
26
+ <dict/>
27
+ <key>auto_connect</key>
28
+ <true/>
29
+ <key>data</key>
30
+ <dict>
31
+ <key>connection</key>
32
+ <dict>
33
+ <key>database</key>
34
+ <string>${DB} </string>
35
+ <key>host</key>
36
+ <string>${HOST} </string>
37
+ <key>name</key>
38
+ <string>${NAME} </string>
39
+ <key>user</key>
40
+ <string>${USER} </string>
41
+ <key>password</key>
42
+ <string>${PASS} </string>
43
+ <key>port</key>
44
+ <integer>${PORT} </integer>
45
+ <key>rdbms_type</key>
46
+ <string>mysql</string>
47
+ </dict>
48
+ <key>session</key>
49
+ <dict/>
50
+ </dict>
51
+ <key>encrypted</key>
52
+ <false/>
53
+ <key>format</key>
54
+ <string>connection</string>
55
+ <key>queryFavorites</key>
56
+ <array/>
57
+ <key>queryHistory</key>
58
+ <array/>
59
+ <key>rdbms_type</key>
60
+ <string>mysql</string>
61
+ <key>version</key>
62
+ <integer>1</integer>
63
+ </dict>
64
+ </plist>
65
+ EOT
66
+
67
+ open $FILENAME
You can’t perform that action at this time.
0 commit comments