Sha256: 3a43f1d09f964384a3f1251a5bc305d1034115714e80be0ff23d80545478ce1e

Contents?: true

Size: 792 Bytes

Versions: 16

Compression:

Stored size: 792 Bytes

Contents

class IssueCustomConfig < CassandraObject::BaseSchemalessDynamic
  string :description
  string :title

  before_create { self.description ||= 'funny' }

  self.allow_filtering = true

  def self.for_key key
    where_ids(key)
  end

  # must be different to general config to test funcionality!
  def self.custom_config
    {
        keyspace: 'cassandra_object_test',
        hosts: ['127.0.0.1'],
        compression: :lz4,
        connect_timeout: 2,
        timeout: 30,
        consistency: :quorum,
        protocol_version: 3,
        page_size: 12345,
        trace: true,
        connections_per_local_node: 4,
        schema_refresh_delay: 0.1,
        schema_refresh_timeout: 0.1,
        # connections_per_remote_node: nil,
        # logger: Logger.new($stderr)
    }
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
extendi-cassandra_object-1.1.1 test/support/issue_custom_config.rb
extendi-cassandra_object-1.1.0 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.20 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.19 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.18 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.17 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.16 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.15 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.14 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.13 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.12 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.11 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.10 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.9 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.8 test/support/issue_custom_config.rb
extendi-cassandra_object-1.0.7 test/support/issue_custom_config.rb