Code Monkey home page Code Monkey logo

bitmap's People

Contributors

pierrelemee avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bitmap's Issues

Support query introspection

When a user queries objects using a raw SQL query, define a strategy that can be able to analyze the query and create the associated mapping

Cache mappers

Allow bitmap to cache all / some of the mappers to avoid the long mapper discovery on each request

Create mapper from array

Allow the user to create a mapper from an array with a specific template.

Plus validation to ensure array is properly formed

Support many-to-many association

Support many-to-many association in the Mapper class.

This would allow users to declare an attribute in their model classes being a list of Entity objects and for which there's a many to many association (e.g. for which a relationship table between both source tables has been declared)

Support one-to-one association

Support one-to-one association in the Mapper class.

Allow users to explicitly set inclusion for embedded Entity attribute in queries.

This will require the mapper to prefix all fields with their table names

Support one-to-many association

Support one-to-many association in the Mapper class.

Allow users to embed a list of Entity in one of their model classes attribute.

Add unit tests on errored queries

Among features uncovered by unit test:

  • update of an entity with no defined primary
  • mapper having both attribute and method with the same name
  • Entity::findOne with incorrect SQL query
  • Entity::find with incorrect SQL query

Handle update queries

Support update queries in the save() method.

Requires to support primary key to be able to identify object from the table database in the where clause.

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.