Class: SeaDuck::RestCatalog

Inherits:
Catalog
  • Object
show all
Defined in:
lib/seaduck/rest_catalog.rb

Instance Method Summary collapse

Methods inherited from Catalog

#_initialize, #attach, #create_namespace, #detach, #drop_namespace, #drop_table, #inspect, #list_namespaces, #list_tables, #namespace_exists?, #quote, #quote_identifier, #snapshots, #sql, #table_exists?, #transaction

Constructor Details

#initialize(uri:, warehouse: nil, default_namespace: "main", _secret_options: nil) ⇒ RestCatalog

Returns a new instance of RestCatalog.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/seaduck/rest_catalog.rb', line 3

def initialize(uri:, warehouse: nil, default_namespace: "main", _secret_options: nil)
  attach_options = {
    endpoint: uri,
    authorization_type: "none"
  }
  _initialize(
    warehouse.to_s,
    default_namespace:,
    attach_options:,
    secret_options: _secret_options
  )
end