class Mig::DSN

Defined in:

mig/dsn.cr

Constant Summary

SUPPORTED_PARAMS = ["host", "port", "dbname", "user", "password", "passfile", "channel_binding", "connect_timeout", "client_encoding", "options", "application_name", "fallback_application_name", "keepalives", "keepalives_idle", "keepalives_interval", "keepalives_count", "tcp_user_timeout", "tty", "replication", "gssencmode", "sslmode", "requiressl", "sslcompression", "sslcert", "sslkey", "sslpassword", "sslrootcert", "sslcrl", "requirepeer", "ssl_max_protocol_version", "krbsrvname", "gsslib", "service", "target_session_attrs"] of ::String

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(uri : URI) #

[View source]

Class Method Detail

def self.parse(database_url : String) #

[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def dbname #

[View source]
def to_s(*args, **options) #

[View source]
def to_s(*args, **options, &) #

[View source]
def uri(as_superuser? = false) #

[View source]
def user #

[View source]