Web工匠的Golang ORM库。-Golang开发

时间:2021-05-26 18:58:19
【文件属性】:
文件名称:Web工匠的Golang ORM库。-Golang开发
文件大小:27KB
文件格式:ZIP
更新时间:2021-05-26 18:58:19
Golang ORM Web工匠的Golang ORM库。 ThinkORM ThinkORM是用于Go的简单而强大的ORM。 安装进入get github.com/thinkoner/torm快速入门获取数据库连接:config:= torm.Config {驱动程序:“ mysql”,Dsn:“ root:abc-123 @ tcp(127.0.0.1:3306)/ test? charset = utf8&parseTime = true“,} db,_:= torm.Open(config)查询生成器:类型User struct {名称字符串`torm:” column:name“`性别字符串`torm:” column:gender“`地址字符串BirthDate字符串Balance浮动
【文件预览】:
torm-master
----.travis.yml(173B)
----join_clause.go(403B)
----schema.go(1KB)
----driver()
--------sqlite()
--------mysql()
----field()
--------attr.go(363B)
----schema_test.go(168B)
----table.go(2KB)
----connection.go(5KB)
----model.go(184B)
----field.go(2KB)
----db.go(219B)
----manager.go(627B)
----query()
--------expression.go(331B)
--------query.go(1KB)
----LICENSE(11KB)
----field_test.go(1KB)
----grammar()
--------expression.go(71B)
--------base_grammar.go(1KB)
--------mysql_grammar.go(12KB)
--------interface.go(738B)
----table_test.go(3KB)
----builder.go(17KB)
----connection_test.go(3KB)
----.gitignore(198B)
----go.sum(1KB)
----README.md(2KB)
----utils()
--------str_test.go(770B)
--------tool_test.go(452B)
--------str.go(1KB)
--------tool.go(639B)
----go.mod(170B)

网友评论