Class: SeaDuck::S3TablesCatalog

Inherits:
Catalog
  • Object
show all
Defined in:
lib/seaduck/s3_tables_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(arn:, default_namespace: "main") ⇒ S3TablesCatalog



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/seaduck/s3_tables_catalog.rb', line 4

def initialize(arn:, default_namespace: "main")
  attach_options = {
    endpoint_type: "s3_tables"
  }
  secret_options = {
    type: "s3",
    provider: "credential_chain"
  }
  _initialize(
    arn,
    default_namespace:,
    attach_options:,
    secret_options:,
    extensions: ["aws", "httpfs"]
  )
end