module WolfCore::NoSqlDbDataSource
def get_item(table_name:, key:)
def get_item(table_name:, key:) instance.get_item({ table_name: table_name, key: key }).item end
def init(region: 'us-east-1')
def init(region: 'us-east-1') @@dynamodb_client ||= Aws::DynamoDB::Client.new(region: region) end
def instance
def instance @@dynamodb_client end
def put_item(table_name:, item:)
def put_item(table_name:, item:) instance.put_item({ table_name: table_name, item: item }) end