Sha256: 790faa34fb45ea9a5a1cf9a2febf4245e330d80ee96cd528c9db4178d126e444

Contents?: true

Size: 533 Bytes

Versions: 21

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true


class ReeDao::BuildSqliteConnection
  include Ree::FnDSL

  fn :build_sqlite_connection do
    link :build_connection
  end

  contract(
    {
      database: String,
      readonly?: Bool,
      timeout?: Integer,
      max_connections?: Integer,
    },
    Ksplat[
      RestKeys => Any # inherited from `build_connection` opts
    ] => Sequel::Database
  )
  def call(conn_opts, **opts)
    require 'sequel/adapters/sqlite'
    build_connection(conn_opts.merge(adapter: 'sqlite'), **opts)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ree_lib-1.0.29 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb