Giter VIP home page Giter VIP logo

broken_record's Introduction

Broken Record: A cheap and busted ORM

This is meant to be a demo program for Practicing Ruby. It is not suitable for any real purpose. However, it may be a fun starting point for palying around with design strategies for implementing object-relational mappers.

The most interesting thing about this codebase is that it attempts to implement a design that is not heavily dependent on class inheritance and module mixins. In fact, the only mixin used is BrokenRecord::Composable, which facilitates a composition-based, object-oriented alternative to mixins. It is probably a bad idea for a number of reasons, but is worth investigating.

To run the examples for this program, do the following:

  1. Run bundle or manually install the sqlite3 gem

  2. Run any example in the examples/ folder

Broken Record itself does not have a hard dependency on the sqlite3 gem, but does use SQLITE3 syntax exclusively. Its examples and tests use an in-memory database, so you don't need to configure anything to try them out as long as you have the dependencies installed. The examples will obviously make a lot more sense if you've read Practicing Ruby issues 4.8 and 4.10, but if you just stumbled across this repository by chance and have questions, feel free to email [email protected] with questions.

Enjoy!!!

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.