DynasaurDynamoDB 的 Node.js ORM 框架
Dynasaur 是 Node.js 的一個(gè) ORM 擴(kuò)展框架,用來訪問 AWS 的 DynamoDB NoSQL 數(shù)據(jù)庫。
示例代碼:
module.exports = (dynasaur) ->
blog_post_schema =
attributes:
author: String
title: String
body: String
date: Number
index: [{type:'hash',field:'author'}, {type:'range',fields:['title','date']}]
BlogPost = dynasaur.model 'BlogPost', blog_post_schema評(píng)論
圖片
表情
