Documentation ¶
Index ¶
- Variables
- func Seed(ctx context.Context, db *sql.DB, q *Queries) error
- type Attribute
- type AttributeType
- type Communication
- type CommunicationType
- type CreateEntityParams
- type DBTX
- type Entity
- type EntityType
- type GetEntityByIDRow
- type GetEntityByNameRow
- type ListAttributesByEntityIDRow
- type ListChildrenEntitiesParams
- type ListChildrenEntitiesRow
- type ListEntitiesByTypeParams
- type ListEntitiesByTypeRow
- type ListEntitiesParams
- type ListEntitiesRow
- type ListParentEntitiesParams
- type ListParentEntitiesRow
- type ListRelationshipsParams
- type ListRelationshipsRow
- type Queries
- func (q *Queries) CreateEntity(ctx context.Context, arg CreateEntityParams) (Entity, error)
- func (q *Queries) DeleteEntity(ctx context.Context, entityID int64) error
- func (q *Queries) GetEntityByID(ctx context.Context, entityID int64) (GetEntityByIDRow, error)
- func (q *Queries) GetEntityByName(ctx context.Context, entityName string) (GetEntityByNameRow, error)
- func (q *Queries) ListAttributeTypes(ctx context.Context) ([]AttributeType, error)
- func (q *Queries) ListAttributesByEntityID(ctx context.Context, entityID int64) ([]ListAttributesByEntityIDRow, error)
- func (q *Queries) ListChildrenEntities(ctx context.Context, arg ListChildrenEntitiesParams) ([]ListChildrenEntitiesRow, error)
- func (q *Queries) ListCommunicationTypes(ctx context.Context) ([]CommunicationType, error)
- func (q *Queries) ListEntities(ctx context.Context, arg ListEntitiesParams) ([]ListEntitiesRow, error)
- func (q *Queries) ListEntitiesByType(ctx context.Context, arg ListEntitiesByTypeParams) ([]ListEntitiesByTypeRow, error)
- func (q *Queries) ListEntityTypes(ctx context.Context) ([]EntityType, error)
- func (q *Queries) ListParentEntities(ctx context.Context, arg ListParentEntitiesParams) ([]ListParentEntitiesRow, error)
- func (q *Queries) ListRelationshipTypes(ctx context.Context) ([]RelationshipType, error)
- func (q *Queries) ListRelationships(ctx context.Context, arg ListRelationshipsParams) ([]ListRelationshipsRow, error)
- func (q *Queries) SeedAttributeTypes(ctx context.Context) error
- func (q *Queries) SeedCommunicationTypes(ctx context.Context) error
- func (q *Queries) SeedEntityTypes(ctx context.Context) error
- func (q *Queries) SeedRelationshipTypes(ctx context.Context) error
- func (q *Queries) UpdateEntityName(ctx context.Context, arg UpdateEntityNameParams) (Entity, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Relationship
- type RelationshipType
- type SourceEntity
- type SourceEntityType
- type TargetEntity
- type TargetEntityType
- type UpdateEntityNameParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommunicationTypes []CommunicationType EntityTypes []EntityType RelationshipTypes []RelationshipType )
Functions ¶
Types ¶
type AttributeType ¶
type Communication ¶
type CommunicationType ¶
type CreateEntityParams ¶
type EntityType ¶
type GetEntityByIDRow ¶
type GetEntityByNameRow ¶
type ListChildrenEntitiesRow ¶
type ListEntitiesByTypeRow ¶
type ListEntitiesParams ¶
type ListEntitiesRow ¶
type ListParentEntitiesRow ¶
type ListRelationshipsParams ¶
type ListRelationshipsRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateEntity ¶
func (*Queries) DeleteEntity ¶
func (*Queries) GetEntityByID ¶
func (*Queries) GetEntityByName ¶
func (*Queries) ListAttributeTypes ¶
func (q *Queries) ListAttributeTypes(ctx context.Context) ([]AttributeType, error)
func (*Queries) ListAttributesByEntityID ¶
func (*Queries) ListChildrenEntities ¶
func (q *Queries) ListChildrenEntities(ctx context.Context, arg ListChildrenEntitiesParams) ([]ListChildrenEntitiesRow, error)
func (*Queries) ListCommunicationTypes ¶
func (q *Queries) ListCommunicationTypes(ctx context.Context) ([]CommunicationType, error)
func (*Queries) ListEntities ¶
func (q *Queries) ListEntities(ctx context.Context, arg ListEntitiesParams) ([]ListEntitiesRow, error)
func (*Queries) ListEntitiesByType ¶
func (q *Queries) ListEntitiesByType(ctx context.Context, arg ListEntitiesByTypeParams) ([]ListEntitiesByTypeRow, error)
func (*Queries) ListEntityTypes ¶
func (q *Queries) ListEntityTypes(ctx context.Context) ([]EntityType, error)
func (*Queries) ListParentEntities ¶
func (q *Queries) ListParentEntities(ctx context.Context, arg ListParentEntitiesParams) ([]ListParentEntitiesRow, error)
func (*Queries) ListRelationshipTypes ¶
func (q *Queries) ListRelationshipTypes(ctx context.Context) ([]RelationshipType, error)
func (*Queries) ListRelationships ¶
func (q *Queries) ListRelationships(ctx context.Context, arg ListRelationshipsParams) ([]ListRelationshipsRow, error)
func (*Queries) SeedAttributeTypes ¶
func (*Queries) SeedCommunicationTypes ¶
func (*Queries) SeedRelationshipTypes ¶
func (*Queries) UpdateEntityName ¶
type Relationship ¶
type RelationshipType ¶
type SourceEntity ¶
type SourceEntityType ¶
type TargetEntity ¶
type TargetEntityType ¶
type UpdateEntityNameParams ¶
Click to show internal directories.
Click to hide internal directories.