Class: ReeDao::BuildDao
- Inherits:
-
Object
- Object
- ReeDao::BuildDao
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_dao.rb
Instance Method Summary collapse
Instance Method Details
#call(connection:, table_name:, mapper:, **opts) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_dao.rb', line 19 def call(connection:, table_name:, mapper:, **opts) connection[table_name].clone( mode: :write, schema_mapper: mapper, primary_key: opts[:primary_key] || :id ) end |