mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
schema/index: update index comments (#1814)
* update index comments * Update schema/index/index.go Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ type Builder struct {
|
|||||||
//
|
//
|
||||||
// // Unique index of field under specific edge.
|
// // Unique index of field under specific edge.
|
||||||
// index.Fields("name").
|
// index.Fields("name").
|
||||||
// FromEdges("parent").
|
// Edges("parent").
|
||||||
// Unique(),
|
// Unique(),
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
@@ -46,7 +46,7 @@ func Fields(fields ...string) *Builder {
|
|||||||
// func (T) Indexes() []ent.Index {
|
// func (T) Indexes() []ent.Index {
|
||||||
//
|
//
|
||||||
// // Unique index of field under 2 edges.
|
// // Unique index of field under 2 edges.
|
||||||
// index.Field("name").
|
// index.Fields("name").
|
||||||
// Edges("parent", "type").
|
// Edges("parent", "type").
|
||||||
// Unique(),
|
// Unique(),
|
||||||
//
|
//
|
||||||
@@ -105,10 +105,8 @@ func (b *Builder) StorageKey(key string) *Builder {
|
|||||||
// func (T) Indexes() []ent.Index {
|
// func (T) Indexes() []ent.Index {
|
||||||
//
|
//
|
||||||
// // Partial index on name where the entity is not deleted.
|
// // Partial index on name where the entity is not deleted.
|
||||||
// index.Field("name").
|
// index.Fields("name").
|
||||||
// Annotations(index.Annotation{
|
// Annotations(entsql.Prefix(100))
|
||||||
// WhereClause: "deleted_at is not null",
|
|
||||||
// })
|
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user