Sha256: 2f0d7cb414700230ff062b689ccbbfc933c13902575a25275570c9ca56f7e875

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

require_relative "shared/xtdb"
require "sequel/adapters/postgres"

module Sequel
  module XTDB
    class Database < Sequel::Postgres::Database
      include ::Sequel::XTDB::DatabaseMethods

      set_adapter_scheme :xtdb

      private

      def adapter_initialize
        # XTDB can't handle this SET-command
        @opts[:force_standard_strings] = false
        super
      end

      def dataset_class_default
        Dataset
      end
    end

    class Dataset < Sequel::Postgres::Dataset
      include ::Sequel::XTDB::DatasetMethods
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sequel-xtdb-0.2.1 lib/sequel/adapters/xtdb.rb