Hylke Visser 6a1c9e73fe entc/sql/decode: fix decoding of NullTime in optional and nillable time fields (#60)
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
2019-10-04 03:38:45 -07:00
2019-10-04 01:11:46 -07:00
2019-08-29 23:22:44 -07:00
2019-06-17 08:23:39 -07:00
2019-09-26 05:59:27 -07:00
2019-08-26 08:02:12 -07:00
2019-10-02 12:55:28 -07:00

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
An entity framework for Go
Readme Apache-2.0 94 MiB
Languages
Go 100%