openrecord

Make ORMs great again!

Github星跟踪图

OpenRecord

Build Status
Coverage Status
npm package version
Package Quality
Code Quality: Javascript
Total Alerts

OPENRECORD is an ActiveRecord inspired ORM for nodejs.

Currently it supports the following databases/datastores: SQLite3, MySQL, Postgres, Oracle, REST and LDAP (+ ActiveDirectory)
If you want to build a GraphQL endpoint for any of these databases, OPENRECORD has some built in features to support you!

As the name imply, it's open and very easy to extend. The whole package was build that way.

It has a lot of features, just take a look at the docs!

Usage example

Here is an example how to get a single post from an existing sqlite3 file (by primary key).

const Store = require('openrecord/store/sqlite3')

const store = new Store({
  file: './my-posts-db.sqlite3',
  autoLoad: true
})

store.ready(async () => {
  const post = await store.Model('Post').find(1)
  console.log(post)
})

You don't have to define your model (optional) and you also don't have to define your model's attributes (optional).
Take a look at the docs to get started!

Contributing

If you've found a bug please report it via the issues page.
Before you submit a pull request, please make sure all tests still pass.


Sponsored by digitalbits.at

主要指标

概览
名称与所有者PhilWaldmann/openrecord
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-01-20 11:36:30
推送于2021-06-28 18:38:22
最后一次提交2021-03-08 13:48:32
发布数117
最新版本名称v2.8 (发布于 )
第一版名称v0.2.4 (发布于 )
用户参与
星数485
关注者数19
派生数38
提交数893
已启用问题?
问题数92
打开的问题数2
拉请求数29
打开的拉请求数8
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?