Registry / database / dm-core

dm-core

JSON →
library1.2.1rbrubygemsunverified

DataMapper core library providing an ORM for Ruby with a fluent query interface.

gem install dm-core
INSTALL
IMPORT
SIG · DM-CORE
D
dm-core
databaserubyv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DataMapper
require 'dm-core'

Define a model and persist it using DataMapper with an in-memory SQLite database.

require 'dm-core' DataMapper.setup(:default, 'sqlite3::memory:') class User include DataMapper::Resource property :id, Serial property :name, String end DataMapper.finalize User.create(name: 'Alice') puts User.first.name
Debug
Known issues
breakingDataMapper is no longer actively maintained; consider using Sequel or ActiveRecord.
fix
Migrate to a supported ORM like Sequel or ActiveRecord.
affects: >= 1.2.0
Upgrade
Version history
1.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
dm-core — gem install dm-core · libregistry