Versions in this module Expand all Collapse all v0 v0.12.0 Jun 11, 2026 v0.11.0 Jun 11, 2026 Changes in this version + type CreateOrderParams struct + Status any + TotalAmount any + UserId any + type CreateProductParams struct + Name any + Price any + Sku any type Querier + WithTx func(tx DBTX) *Queries type Queries + func (q *Queries) WithTx(tx DBTX) *Queries + type UpdateOrderStatusParams struct + Id any + Status any + type UpdateProductPriceParams struct + Id any + Price any v0.5.0 Feb 9, 2026 v0.3.0 Feb 7, 2026 Changes in this version + type CreateOrderRow struct + CreatedAt int32 + Id any + Status any + TotalAmount any + UpdatedAt *int32 + UserId any + type CreateProductRow struct + CreatedAt int32 + Id any + Name string + Price any + Sku any + type CreateUserRow struct + CreatedAt int32 + Email any + Id any + type DBTX interface + ExecContext func(ctx context.Context, query string, args ...any) (sql.Result, error) + QueryContext func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...any) *sql.Row + type GetOrderRow struct + CreatedAt int32 + Id any + Status any + TotalAmount any + UpdatedAt *int32 + UserId any + type GetOrderStatisticsRow struct + TotalOrders int64 + TotalRevenue *any + type GetOrdersByStatusRow struct + CreatedAt int32 + Id any + Status any + TotalAmount any + UserId any + type GetProductBySkuRow struct + CreatedAt int32 + Id any + Name string + Price any + Sku any + type GetProductRow struct + CreatedAt int32 + Id any + Name string + Price any + Sku any + type GetUserByEmailRow struct + CreatedAt int32 + Email any + Id any + type GetUserRow struct + CreatedAt int32 + Email any + Id any + type ListOrdersByUserRow struct + CreatedAt int32 + Id any + Status any + TotalAmount any + type ListProductsRow struct + CreatedAt int32 + Id any + Name string + Price any + Sku any + type ListUsersRow struct + CreatedAt int32 + Email any + Id any + type Orders struct + CreatedAt int32 + Id types.OrderID + Status types.Status + TotalAmount types.Money + UpdatedAt *int32 + UserId types.UserID + type Products struct + CreatedAt int32 + Id types.ProductID + Name string + Price types.Money + Sku types.SKU + type Querier interface + CreateOrder func(ctx context.Context, arg1 any, arg2 any, arg3 any) (CreateOrderRow, error) + CreateProduct func(ctx context.Context, arg1 any, arg2 string, arg3 any) (CreateProductRow, error) + CreateUser func(ctx context.Context, arg1 any) (CreateUserRow, error) + GetOrder func(ctx context.Context, id any) (GetOrderRow, error) + GetOrderStatistics func(ctx context.Context, userId any) (GetOrderStatisticsRow, error) + GetOrdersByStatus func(ctx context.Context, status any) ([]GetOrdersByStatusRow, error) + GetProduct func(ctx context.Context, id any) (GetProductRow, error) + GetProductBySku func(ctx context.Context, sku any) (GetProductBySkuRow, error) + GetUser func(ctx context.Context, id any) (GetUserRow, error) + GetUserByEmail func(ctx context.Context, email any) (GetUserByEmailRow, error) + ListOrdersByUser func(ctx context.Context, userId any) ([]ListOrdersByUserRow, error) + ListProducts func(ctx context.Context) ([]ListProductsRow, error) + ListUsers func(ctx context.Context) ([]ListUsersRow, error) + UpdateOrderStatus func(ctx context.Context, status any, arg2 any) (UpdateOrderStatusRow, error) + UpdateProductPrice func(ctx context.Context, price any, arg2 any) (UpdateProductPriceRow, error) + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) CreateOrder(ctx context.Context, arg1 any, arg2 any, arg3 any) (CreateOrderRow, error) + func (q *Queries) CreateProduct(ctx context.Context, arg1 any, arg2 string, arg3 any) (CreateProductRow, error) + func (q *Queries) CreateUser(ctx context.Context, arg1 any) (CreateUserRow, error) + func (q *Queries) GetOrder(ctx context.Context, id any) (GetOrderRow, error) + func (q *Queries) GetOrderStatistics(ctx context.Context, userId any) (GetOrderStatisticsRow, error) + func (q *Queries) GetOrdersByStatus(ctx context.Context, status any) ([]GetOrdersByStatusRow, error) + func (q *Queries) GetProduct(ctx context.Context, id any) (GetProductRow, error) + func (q *Queries) GetProductBySku(ctx context.Context, sku any) (GetProductBySkuRow, error) + func (q *Queries) GetUser(ctx context.Context, id any) (GetUserRow, error) + func (q *Queries) GetUserByEmail(ctx context.Context, email any) (GetUserByEmailRow, error) + func (q *Queries) ListOrdersByUser(ctx context.Context, userId any) ([]ListOrdersByUserRow, error) + func (q *Queries) ListProducts(ctx context.Context) ([]ListProductsRow, error) + func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error) + func (q *Queries) UpdateOrderStatus(ctx context.Context, status any, arg2 any) (UpdateOrderStatusRow, error) + func (q *Queries) UpdateProductPrice(ctx context.Context, price any, arg2 any) (UpdateProductPriceRow, error) + type QueryResult struct + LastInsertID int64 + RowsAffected int64 + type UpdateOrderStatusRow struct + CreatedAt int32 + Id any + Status any + TotalAmount any + UpdatedAt *int32 + UserId any + type UpdateProductPriceRow struct + CreatedAt int32 + Id any + Name string + Price any + Sku any + type Users struct + CreatedAt int32 + Email types.Email + Id types.UserID