The NodeJS community
The community of NodeJS increase every year at a tremendous rate. Many new projects and frameworks, to easy the developers life on how to build agile and great software solutions; where born.
Projects like express and socket.io are the base of many, many projects. Some others aims to be a more complex web frameworks, like sails, totaljs and mean among others; providing a MVC approach and integrating some other tools like Template generation, Form generation, and ORMs
Database access its one of the first tasks we require to do on most projects, any dynamic application need to persist some data at some point.
Even when BigData and NoSQL databases change the perspective of storing data and build apps; relational databases, like MySQL, Postgres, SQLite and Oracle; are still commonly used.
ORMs provide an OO approach on how we talk to this database engines, and certainly allow us to interact with them in an easy way.
So why do we need a new one?
There are two common design patterns to implement ORMs solutions
The main difference between those two, and the one i want to bring out from my personal perspective; is the way it couples your code into its own code.
Active Record been the most simplest and easiest of both, requires you to extends its models; so your business code will be coupled to the ORM you choose to its end. In the other hand Data Mapper allows you keep business rules and database code separated, and from and architectural point of view; this is important if you want to keep your code clean, and you should, even when its learning curve can be more complex
Since i do a lot of programming with Symfony and Doctrine is the default ORM, i have more understanding on how it works and was implemented.
So i decide to create a clone of that great project and juggle a little with the names, that its how Nodetrine was born.
As its father Doctrine, Nodetrine will be the organization behind several projects starting from DBAL and followed by ORM
Database Abstraction Layer aims to create a common entry point for all relational databases implemented through the Driver interface, so it can be database engine agnostic and perform the common tasks for interaction with those engines in a seamlessly way.
On this first release you can find the base tools to query and manipulate data on the database. There are other tools that will be implemented on the upcoming releases.
I really hope this project can help build amazing apps, but i even desire more that we can create a community around it and collaborate to make it amazing, so feel free to file bugs, write docs, tests it, use it, and write code.
So till next time
Nodetrine its here!!!