RethinkDB 的 ORM 框架 Thinky
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://thinky.io/
- 软件文档: http://thinky.io/documentation/
软件介绍
Thinky 是一个轻量级的 Node.js 的 ORM 框架,用于支持 RethinkDB 分布式数据库.
示例代码:
var thinky = require('thinky')();
// Create a model - the table is automatically created
var Post = thinky.createModel("Post", {
id: String,
title: String,
content: String,
idAuthor: String
});
var Author = thinky.createModel("Author", {
id: String,
name: String
});
// Join the models
Post.belongsTo(Author, "author", "idAuthor", "id");
