Documentation
¶
Index ¶
- type CreateObjectParams
- type CreatePropertyParams
- type CreateUserParams
- type DBTX
- type NullPropertyType
- type Object
- type Property
- type PropertyType
- type Queries
- func (q *Queries) CreateObject(ctx context.Context, arg CreateObjectParams) (Object, error)
- func (q *Queries) CreateProperty(ctx context.Context, arg CreatePropertyParams) (Property, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) FetchObjectByID(ctx context.Context, id uuid.UUID) (Object, error)
- func (q *Queries) FetchObjectsByID(ctx context.Context, ids []uuid.UUID) ([]Object, error)
- func (q *Queries) FetchPropertiesByObjectID(ctx context.Context, objectID uuid.UUID) ([]Property, error)
- func (q *Queries) FetchUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SchemaMigration
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateObjectParams ¶
type CreatePropertyParams ¶
type CreateUserParams ¶
type NullPropertyType ¶
type NullPropertyType struct {
PropertyType PropertyType
Valid bool // Valid is true if PropertyType is not NULL
}
func (*NullPropertyType) Scan ¶
func (ns *NullPropertyType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Property ¶
type Property struct {
ID uuid.UUID
Name string
ObjectID uuid.UUID
TemplateID uuid.NullUUID
PropertyType PropertyType
StringValue pgtype.Text
IntegerValue pgtype.Int8
FloatValue pgtype.Float8
ObjectValueID uuid.NullUUID
DateValue pgtype.Date
BooleanValue pgtype.Bool
ImagePath pgtype.Text
CreatedAt pgtype.Timestamp
UpdatedAt pgtype.Timestamp
}
type PropertyType ¶
type PropertyType string
const ( PropertyTypeString PropertyType = "string" PropertyTypeInteger PropertyType = "integer" PropertyTypeFloat PropertyType = "float" PropertyTypeBoolean PropertyType = "boolean" PropertyTypeObject PropertyType = "object" PropertyTypeImage PropertyType = "image" PropertyTypeDate PropertyType = "date" )
func (*PropertyType) Scan ¶
func (e *PropertyType) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateObject ¶
func (*Queries) CreateProperty ¶
func (*Queries) CreateUser ¶
func (*Queries) FetchObjectByID ¶
func (*Queries) FetchObjectsByID ¶
func (*Queries) FetchPropertiesByObjectID ¶
func (*Queries) FetchUserByEmail ¶
type SchemaMigration ¶
Click to show internal directories.
Click to hide internal directories.