【文件属性】:
文件名称:borm:boltdb 小 orm
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-14 02:20:18
Go
博尔姆
用于处理模型结构的 boltdb tiny orm。
######模型结构:
type Person struct {
// required
borm. Model
// Model fields
Name string
Age int
// optional. used to add Created field into model. Will be set automaticaly on creation
borm. CreateTime
// optional. used to add Updated field into model. Will be updated automaticaly on each model save
borm. UpdateTime
}
######用法示例
package main
【文件预览】:
borm-master
----model.go(669B)
----LICENSE(1KB)
----logger.go(1KB)
----validator.go(3KB)
----.gitignore(271B)
----README.md(2KB)
----utils.go(2KB)
----orm.go(10KB)
----orm_test.go(6KB)