naftali100/async-orm
最新稳定版本:v0.1.3.1
Composer 安装命令:
composer require naftali100/async-orm
包简介
async orm library
README 文档
README
async orm lib inspired by redbean
implements only the basic CURD functionality (no relations atm)
usage
almost the same as redbean. notice the yield every time you do db call
Amp\Loop::run(function(){ yield ORM::connect('127.0.0.1', 'user', 'pass', 'db'); $user = ORM::create('user'); $user->name = 'john'; $userid = yield ROM::store($user); $same_user = yield ORM::load('user', $userid); print $same_user->id; // id print $same_user->name; // john });
todo
- tests
- relations
- fix structure
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-10-31