()
| 86 | } |
| 87 | |
| 88 | func (_c *ZooCreate) createSpec() (*Zoo, *sqlgraph.CreateSpec) { |
| 89 | var ( |
| 90 | _node = &Zoo{config: _c.config} |
| 91 | _spec = sqlgraph.NewCreateSpec(zoo.Table, sqlgraph.NewFieldSpec(zoo.FieldID, field.TypeInt)) |
| 92 | ) |
| 93 | if id, ok := _c.mutation.ID(); ok { |
| 94 | _node.ID = id |
| 95 | _spec.ID.Value = id |
| 96 | } |
| 97 | return _node, _spec |
| 98 | } |
| 99 | |
| 100 | // ZooCreateBulk is the builder for creating many Zoo entities in bulk. |
| 101 | type ZooCreateBulk struct { |
no test coverage detected