mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
6a1c9e73fea63d51357cda79dc567f217928118b
Summary:
While trying out this project I think I found a bug in the generated code when using an optional and nillable time field.
```
vet: ent/user.go:46:16: cannot use &vu.DeletedAt (value of type *sql.NullTime) as *time.Time value in assignment
```
7438104b5d made a change to the `{{ $scan }}` struct, which now always uses `{{ $f.NullType }}` as type, so the `$f.IsTime` check can now be removed. This pull request does that.
This is my fist contribution here. I hope I didn't miss anything.
Pull Request resolved: https://github.com/facebookincubator/ent/pull/60
Differential Revision: D17760925
Pulled By: a8m
fbshipit-source-id: 675005be62487b1b9eb77302b8185bd3b6ef0195
ent - An Entity Framework For Go
Simple, yet powerful ORM for modeling and querying data.
- Schema As Code - model any graph schema as Go objects.
- Easily Traverse Any Graph - run queries, aggregations and traverse any graph structure easily.
- Statically Typed And Explicit API - 100% statically typed and explicit API using code generation.
- Multi Storage Driver - supports MySQL, SQLite and Gremlin.
Installation
go get github.com/facebookincubator/ent/entc/cmd/entc
Docs
The documentation for developing and using ent is avaliable at: https://entgo.io
Join the ent Community
See the CONTRIBUTING file for how to help out.
Project Status
ent was developed and maintained by a8m and alexsn
from the Facebook Connectivity team. It's currently considered experimental (although we're using it in production),
and the roadmap for v1 release is described here.
Read more about the motivation of the project here.
License
ent is licensed under Apache 2.0 as found in the LICENSE file.
Description
Languages
Go
100%
