Tag Archives: ORM

npdynamodb: A NodeJS Simple Query Builder and ORM for AWS DynamoDB.


via noppoMan/npdynamodb · GitHub.

When I visited here for the first time, I closed it in a moment. Because it is too long and hard to see to understand. So I decided to make client to handle DynamoDB more easier and It doesn’t take waste of time to read documentation for it.

Converting JSON to Models


via Converting JSON to Models | CodePath Android Cliffnotes.

This guide describes the process of converting JSON data retrieved from a network request and converting that data to simple Model objects. This approach will be compatible with nearly any basic data-driven application and fits well with any ORM solution for persistence such as ActiveAndroid or SugarORM that may be introduced.

For this guide, we will be using the Yelp API as the example. The goal of this guide is to perform a Yelp API Search and then process the results into Java objects which we can then use to populate information within our application.

The model in this case is Business and for our application, let’s suppose we just need the name, phone, and image of the business which are all provided by the Search API.

A simple ORM for NodeJS


via Vincit/moron.js · GitHub.

Moron.js is a Node.js ORM built around the wonderful SQL query builder knex. All databases supported by knex are supported by moron.js. SQLite3, Postgres and MySQL are fully tested.

What moron.js gives you:

What moron.js doesn’t give you:

  • A custom query DSL. SQL is used everywhere
  • Automatic database schema creation and migration. It is useful for the simple things, but usually just gets in your way when doing anything non-trivial. Moron.js leaves the schema related things to you. knex has a great migration tool that we recommend for this job.

Introducing moronJS – a new ORM for NodeJS


via Introducing moron.js – a new ORM for Node.js | Vincit Oy.

A couple of weeks ago I released moron.js – the first public version of a new ORM forNode.js that Vincit has been using internally in various projects during the last year and a half. I started writing my own ORM after using basically all mature Node.js ORMs out there. While most of them do the basic stuff well, I repeatedly got frustrated with some things:

  • Writing more complex SQL queries is difficult, ugly or impossible.
  • Transaction support is either missing or error-prone. In most cases, you have to pass some kind of transaction object to each query you make. Forget one and bad things will happen to good queries.
  • Database schema is usually automatically created based on the models. Again we are at the mercy of the ORM and cannot do everything SQL or the underlying database engine allows.

Supler: complex web forms, not so complex


via Supler: complex web forms, not so complex | SkillsCast | 27th April 2015.

Let’s face it. Creating websites with complex forms is a pain, and usually ends in lots of code duplication and frustration. And even though it’s the age of big data and microservices, form-based applications still take a large share of our development time. That’s why we have decided to create Supler, a Rapid Form Development library.

Supler has a very focused set of functionality:

  • a Scala DSL for defining forms, generating JSON form description, applying values to backing objects and running actions & validations on the backend
  • a Javascript HTML form renderer, automatically-generated client-side validations, form templating and automatic reloading

You can use Supler with any Javascript frontend and Scala/Java backend framework, ORM layer, etc. The software stack is left entirerly to the developer.

The presentation will be entirely live coding. We will create a simple form-based application from scratch and gradually introduce various Supler features. At the same time, we will explain what approach Supler takes and how Supler solves some of the problems faced when creating a form-based applications.

Getting Started with NodeJS LoopBack Connector for Couchbase


via StrongLoop | Getting Started with Node.js LoopBack Connector for Couchbase.

LoopBack is the leading open source, enterprise-ready Node.js framework for helping developers to create APIs integrated with legacy and next gen backends that at the same time enables mobile and micro services architectures.

LoopBack models connect to backend systems like databases via data sources that provide create, read, update and delete (CRUD) functions through the LoopBack Juggler: a modern ORM/ODM. These data sources are backed by connectors that implement connection and data access logic using database drivers or other client APIs. In addition, there are connectors for REST and SOAP APIs, NoSQL, messaging middleware, storage services and more. For example, StrongLoop maintains connectors for:

Database migration in NodeJS and MongoDB


via Chronicles of the Afro Kid.

We have an app running on the MEAN stack and are using MongooseJS as our ORM. Now, we have 2 collections event and eventV2. We are looking to drop theevent collection and rename the eventV2 collection to just event.