cmc-sales/go-app/internal/cmc/db/querier.go

59 lines
3.5 KiB
Go
Raw Normal View History

2025-06-24 03:32:28 -07:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
package db
import (
"context"
"database/sql"
)
type Querier interface {
ArchiveEnquiry(ctx context.Context, id int32) error
CountEnquiries(ctx context.Context) (int64, error)
CountEnquiriesByPrinciple(ctx context.Context, principleCode int32) (int64, error)
CountEnquiriesByPrincipleAndState(ctx context.Context, arg CountEnquiriesByPrincipleAndStateParams) (int64, error)
CountEnquiriesByStatus(ctx context.Context, statusID int32) (int64, error)
CreateCustomer(ctx context.Context, arg CreateCustomerParams) (sql.Result, error)
CreateEnquiry(ctx context.Context, arg CreateEnquiryParams) (sql.Result, error)
CreateProduct(ctx context.Context, arg CreateProductParams) (sql.Result, error)
CreatePurchaseOrder(ctx context.Context, arg CreatePurchaseOrderParams) (sql.Result, error)
DeleteCustomer(ctx context.Context, id int32) error
DeleteProduct(ctx context.Context, id int32) error
DeletePurchaseOrder(ctx context.Context, id int32) error
GetAllCountries(ctx context.Context) ([]Country, error)
GetAllPrinciples(ctx context.Context) ([]Principle, error)
GetAllStates(ctx context.Context) ([]State, error)
GetAllStatuses(ctx context.Context) ([]GetAllStatusesRow, error)
GetCustomer(ctx context.Context, id int32) (Customer, error)
GetCustomerByABN(ctx context.Context, abn sql.NullString) (Customer, error)
GetEnquiriesByCustomer(ctx context.Context, arg GetEnquiriesByCustomerParams) ([]GetEnquiriesByCustomerRow, error)
GetEnquiriesByUser(ctx context.Context, arg GetEnquiriesByUserParams) ([]GetEnquiriesByUserRow, error)
GetEnquiry(ctx context.Context, id int32) (GetEnquiryRow, error)
GetProduct(ctx context.Context, id int32) (Product, error)
GetProductByItemCode(ctx context.Context, itemCode string) (Product, error)
GetProductsByCategory(ctx context.Context, arg GetProductsByCategoryParams) ([]Product, error)
GetPurchaseOrder(ctx context.Context, id int32) (PurchaseOrder, error)
GetPurchaseOrderRevisions(ctx context.Context, parentPurchaseOrderID int32) ([]PurchaseOrder, error)
GetPurchaseOrdersByPrinciple(ctx context.Context, arg GetPurchaseOrdersByPrincipleParams) ([]PurchaseOrder, error)
ListArchivedEnquiries(ctx context.Context, arg ListArchivedEnquiriesParams) ([]ListArchivedEnquiriesRow, error)
ListCustomers(ctx context.Context, arg ListCustomersParams) ([]Customer, error)
ListEnquiries(ctx context.Context, arg ListEnquiriesParams) ([]ListEnquiriesRow, error)
ListProducts(ctx context.Context, arg ListProductsParams) ([]Product, error)
ListPurchaseOrders(ctx context.Context, arg ListPurchaseOrdersParams) ([]PurchaseOrder, error)
MarkEnquirySubmitted(ctx context.Context, arg MarkEnquirySubmittedParams) error
SearchCustomersByName(ctx context.Context, arg SearchCustomersByNameParams) ([]Customer, error)
SearchEnquiries(ctx context.Context, arg SearchEnquiriesParams) ([]SearchEnquiriesRow, error)
SearchProductsByTitle(ctx context.Context, arg SearchProductsByTitleParams) ([]Product, error)
SearchPurchaseOrdersByTitle(ctx context.Context, arg SearchPurchaseOrdersByTitleParams) ([]PurchaseOrder, error)
UnarchiveEnquiry(ctx context.Context, id int32) error
UpdateCustomer(ctx context.Context, arg UpdateCustomerParams) error
UpdateEnquiry(ctx context.Context, arg UpdateEnquiryParams) error
UpdateEnquiryStatus(ctx context.Context, arg UpdateEnquiryStatusParams) error
UpdateProduct(ctx context.Context, arg UpdateProductParams) error
UpdatePurchaseOrder(ctx context.Context, arg UpdatePurchaseOrderParams) error
}
var _ Querier = (*Queries)(nil)