Sha256: b5befdc38659d82feb18e361d0fe0cfabd7705c29027118944affe41870fff39
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true module TableSync::ORMAdapter class Sequel < Base def attributes object.values end def init @object = object_class.new(object_data.except(*primary_key_columns)) @object.set_fields(needle, needle.keys) super end def find @object = object_class.find(needle) super end def self.model_naming(object_class) TableSync::NamingResolver::Sequel.new( table_name: object_class.table_name, db: object_class.db, ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems