MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / GetOrderByID

Method GetOrderByID

internal/store/postgres/sqlcgen/orders.sql.go:43–62  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

41`
42
43func (q *Queries) GetOrderByID(ctx context.Context, id string) (Order, error) {
44 row := q.db.QueryRow(ctx, getOrderByID, id)
45 var i Order
46 err := row.Scan(
47 &i.ID,
48 &i.UserID,
49 &i.PlanID,
50 &i.Email,
51 &i.StripeSessionID,
52 &i.StripeSubscriptionID,
53 &i.StripeCustomerID,
54 &i.Status,
55 &i.AmountCents,
56 &i.Currency,
57 &i.CreatedAt,
58 &i.PaidAt,
59 &i.LastInvoiceID,
60 )
61 return i, err
62}
63
64const getOrderByStripeSession = `-- name: GetOrderByStripeSession :one
65SELECT id, user_id, plan_id, email, stripe_session_id,

Callers

nothing calls this directly

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected