Last active
February 15, 2018 22:55
-
-
Save andrerocker/bf3f391036e72327619e9bdc2d3af29d to your computer and use it in GitHub Desktop.
ruby cockroachdb pg sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def connection | |
@conn ||= PG.connect({ | |
host: ARGV.first, | |
port: 26257, | |
dbname: 'cocksparrer', | |
user: 'root', | |
sslmode: 'require', | |
sslrootcert: 'util/certs/cock-master/ca.crt', | |
sslcert: 'util/certs/cock-master/client.root.crt', | |
sslkey: 'util/certs/cock-master/client.root.key', | |
}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment