Sha256: 4e7ca78d0d1f46ff20308c2388cfa0d7a7bfa3e9200ebe5f679359ef526fd92b
Contents?: true
Size: 962 Bytes
Versions: 7
Compression:
Stored size: 962 Bytes
Contents
# frozen_string_literal: true class ReeDao::BuildPgConnection include Ree::FnDSL fn :build_pg_connection do link :build_connection end contract( { conn_str?: String, adapter: String, database?: String, encoding?: String, user?: String, password?: String, host?: String, port?: Or[String, Integer], convert_infinite_timestamps?: Or[:string, :nil, :float], connect_timeout?: Integer, driver_options?: Hash, notice_receiver?: Proc, sslmode?: Or['disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full'], sslrootcert?: String, search_path?: String, use_iso_date_format?: Bool, max_connections?: Integer, }, Ksplat[ RestKeys => Any # inherited from `build_connection` opts ] => Sequel::Database ) def call(conn_opts, **opts) require 'sequel/adapters/postgres' build_connection(conn_opts, **opts) end end
Version data entries
7 entries across 7 versions & 1 rubygems