103 lines
6.7 KiB
Go
103 lines
6.7 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.30.0
|
|
|
|
package db
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Querier interface {
|
|
AssignRoleToUser(ctx context.Context, arg AssignRoleToUserParams) (UserRole, error)
|
|
CountUsersByRoleID(ctx context.Context, roleID uuid.UUID) (int64, error)
|
|
CreateAlternativeComponent(ctx context.Context, arg CreateAlternativeComponentParams) (AlternativeComponent, error)
|
|
CreateCabinet(ctx context.Context, arg CreateCabinetParams) (Cabinet, error)
|
|
CreateComponent(ctx context.Context, arg CreateComponentParams) (Component, error)
|
|
CreateComponentCode(ctx context.Context, arg CreateComponentCodeParams) (ComponentCode, error)
|
|
CreateComponentItem(ctx context.Context, arg CreateComponentItemParams) (ComponentItem, error)
|
|
CreateComponentStatusHistory(ctx context.Context, arg CreateComponentStatusHistoryParams) (ComponentStatusHistory, error)
|
|
CreateComponentType(ctx context.Context, arg CreateComponentTypeParams) (ComponentType, error)
|
|
CreateContainer(ctx context.Context, arg CreateContainerParams) (Container, error)
|
|
CreateInvoice(ctx context.Context, arg CreateInvoiceParams) (Invoice, error)
|
|
CreateInvoiceConfig(ctx context.Context, arg CreateInvoiceConfigParams) (InvoiceConfig, error)
|
|
CreateInvoiceConfigItem(ctx context.Context, arg CreateInvoiceConfigItemParams) (InvoiceConfigItem, error)
|
|
CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)
|
|
CreateRoom(ctx context.Context, arg CreateRoomParams) (Room, error)
|
|
CreateShelve(ctx context.Context, arg CreateShelveParams) (Shelf, error)
|
|
CreateUser(ctx context.Context, arg CreateUserParams) (uuid.UUID, error)
|
|
CreateWarehouse(ctx context.Context, arg CreateWarehouseParams) (Warehouse, error)
|
|
DeleteAlternativeComponent(ctx context.Context, id int64) (int64, error)
|
|
DeleteCabinet(ctx context.Context, id int64) (int64, error)
|
|
DeleteComponent(ctx context.Context, id int64) (int64, error)
|
|
DeleteComponentCode(ctx context.Context, id int64) (int64, error)
|
|
DeleteComponentItem(ctx context.Context, id int64) (int64, error)
|
|
DeleteComponentType(ctx context.Context, id int64) (int64, error)
|
|
DeleteContainer(ctx context.Context, id int64) (int64, error)
|
|
DeleteInvoice(ctx context.Context, id int64) (int64, error)
|
|
DeleteInvoiceConfig(ctx context.Context, id int64) (int64, error)
|
|
DeleteInvoiceConfigItem(ctx context.Context, id int64) (int64, error)
|
|
DeleteRole(ctx context.Context, id uuid.UUID) (int64, error)
|
|
DeleteRoom(ctx context.Context, id int64) (int64, error)
|
|
DeleteShelve(ctx context.Context, id int64) (int64, error)
|
|
DeleteWarehouse(ctx context.Context, id int64) (int64, error)
|
|
FindComponentItem(ctx context.Context, componentid int64) ([]FindComponentItemRow, error)
|
|
GetAlternativeComponentByID(ctx context.Context, id int64) (AlternativeComponent, error)
|
|
GetCabinetByID(ctx context.Context, id int64) (Cabinet, error)
|
|
GetComponentByID(ctx context.Context, id int64) (Component, error)
|
|
GetComponentCodeByID(ctx context.Context, id int64) (ComponentCode, error)
|
|
GetComponentItemByComponentContainerStatus(ctx context.Context, arg GetComponentItemByComponentContainerStatusParams) (ComponentItem, error)
|
|
GetComponentItemByID(ctx context.Context, id int64) (ComponentItem, error)
|
|
GetComponentTypeByID(ctx context.Context, id int64) (ComponentType, error)
|
|
GetContainerByID(ctx context.Context, id int64) (Container, error)
|
|
GetInvoiceByID(ctx context.Context, id int64) (Invoice, error)
|
|
GetInvoiceConfigByID(ctx context.Context, id int64) (InvoiceConfig, error)
|
|
GetInvoiceConfigItemByID(ctx context.Context, id int64) (InvoiceConfigItem, error)
|
|
GetRoleByID(ctx context.Context, id uuid.UUID) (Role, error)
|
|
GetRoomByID(ctx context.Context, id int64) (Room, error)
|
|
GetShelveByID(ctx context.Context, id int64) (Shelf, error)
|
|
GetUserByEmail(ctx context.Context, email string) (User, error)
|
|
GetUserByID(ctx context.Context, id uuid.UUID) (User, error)
|
|
GetUserByUsername(ctx context.Context, username string) (User, error)
|
|
GetUserRole(ctx context.Context, arg GetUserRoleParams) (UserRole, error)
|
|
GetUserRolesByRoleID(ctx context.Context, roleID uuid.UUID) ([]GetUserRolesByRoleIDRow, error)
|
|
GetUserRolesByUserID(ctx context.Context, userID uuid.UUID) ([]GetUserRolesByUserIDRow, error)
|
|
GetWarehouseByID(ctx context.Context, id int64) (Warehouse, error)
|
|
ListAlternativeComponents(ctx context.Context) ([]AlternativeComponent, error)
|
|
ListCabinets(ctx context.Context) ([]Cabinet, error)
|
|
ListComponentCodes(ctx context.Context) ([]ComponentCode, error)
|
|
ListComponentItems(ctx context.Context) ([]ComponentItem, error)
|
|
ListComponentTypes(ctx context.Context) ([]ComponentType, error)
|
|
ListComponents(ctx context.Context) ([]Component, error)
|
|
ListContainers(ctx context.Context) ([]Container, error)
|
|
ListInvoiceConfigItems(ctx context.Context) ([]InvoiceConfigItem, error)
|
|
ListInvoiceConfigs(ctx context.Context) ([]InvoiceConfig, error)
|
|
ListInvoices(ctx context.Context) ([]Invoice, error)
|
|
ListRoles(ctx context.Context) ([]Role, error)
|
|
ListRooms(ctx context.Context) ([]Room, error)
|
|
ListShelves(ctx context.Context) ([]Shelf, error)
|
|
ListWarehouses(ctx context.Context) ([]Warehouse, error)
|
|
RemoveAllRolesFromUser(ctx context.Context, userID uuid.UUID) error
|
|
RemoveRoleFromUser(ctx context.Context, arg RemoveRoleFromUserParams) error
|
|
UpdateAlternativeComponent(ctx context.Context, arg UpdateAlternativeComponentParams) (AlternativeComponent, error)
|
|
UpdateCabinet(ctx context.Context, arg UpdateCabinetParams) (Cabinet, error)
|
|
UpdateComponent(ctx context.Context, arg UpdateComponentParams) (Component, error)
|
|
UpdateComponentCode(ctx context.Context, arg UpdateComponentCodeParams) (ComponentCode, error)
|
|
UpdateComponentItem(ctx context.Context, arg UpdateComponentItemParams) (ComponentItem, error)
|
|
UpdateComponentItemQuantity(ctx context.Context, arg UpdateComponentItemQuantityParams) (ComponentItem, error)
|
|
UpdateComponentItemStatus(ctx context.Context, arg UpdateComponentItemStatusParams) (ComponentItem, error)
|
|
UpdateComponentType(ctx context.Context, arg UpdateComponentTypeParams) (ComponentType, error)
|
|
UpdateContainer(ctx context.Context, arg UpdateContainerParams) (Container, error)
|
|
UpdateInvoice(ctx context.Context, arg UpdateInvoiceParams) (Invoice, error)
|
|
UpdateInvoiceConfig(ctx context.Context, arg UpdateInvoiceConfigParams) (InvoiceConfig, error)
|
|
UpdateInvoiceConfigItem(ctx context.Context, arg UpdateInvoiceConfigItemParams) (InvoiceConfigItem, error)
|
|
UpdateRole(ctx context.Context, arg UpdateRoleParams) (Role, error)
|
|
UpdateRoom(ctx context.Context, arg UpdateRoomParams) (Room, error)
|
|
UpdateShelve(ctx context.Context, arg UpdateShelveParams) (Shelf, error)
|
|
UpdateWarehouse(ctx context.Context, arg UpdateWarehouseParams) (Warehouse, error)
|
|
}
|
|
|
|
var _ Querier = (*Queries)(nil)
|