Code Monkey home page Code Monkey logo

simplemapper's Introduction

== SimpleMapper

The purpose of this is to provide Ruby models with Persistence in the simplest way possible.
Like all ORM's it must be based on two components: Format and Connection. The aim is to stay out of the way
as much as possible: Format will be performed by calling, for example a Person class using the xml format:
'@person.to_xml', and likewise 'Person.from_xml'.

SimpleMapper will hold no concept of primary keys or even of properties or attributes. It will be data-agnostic.
It will simply handle the transformation and communication of data while providing a common method interface
in order to remove the model from the persistence.

The connection class will simply work with the idea of messages sent by adapters. All adapters must respond to these methods
appropriately: get, put, post, and delete. These correspond directly to HTTP methods, and correspond to SQL commands
in the order of SELECT, UPDATE, INSERT, and DELETE. It is up to an extraneous library/gem to handle conversions of special
"finder" options, like converting an options hash to a sql SELECT request, or mapping an options hash to an HTTP request.
It is purposed to make it as light and simple as possible to plug these in.

simplemapper's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.