-
-
Save tjsousa/14150b7e798e1e08d316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module This | |
class Bug | |
include Diametric::Entity | |
include Diametric::Persistence::Peer | |
attribute :id, String, index: true | |
attribute :name, String | |
end | |
end | |
Diametric::Persistence.establish_base_connection(uri: 'datomic:mem://sample') | |
This::Bug.create_schema.get | |
bug = This::Bug.new(id: '123') | |
bug.save | |
p This::Bug.all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment