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.49 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.48 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.47 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.46 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.45 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.44 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.43 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.42 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.41 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.40 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.39 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.38 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.37 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.36 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.35 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.34 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.33 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.32 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.31 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
ree_lib-1.0.30 lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb