Skip to content

Instantly share code, notes, and snippets.

@andrerocker
Last active February 15, 2018 22:55
Show Gist options
  • Save andrerocker/bf3f391036e72327619e9bdc2d3af29d to your computer and use it in GitHub Desktop.
Save andrerocker/bf3f391036e72327619e9bdc2d3af29d to your computer and use it in GitHub Desktop.
ruby cockroachdb pg sample
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