migrations

package
v1.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoArgs = []interface{}{}
View Source
var OrderFields = bigquery.Fields{
	"Id_":                 "STRING",
	"UserId":              "STRING",
	"Status":              "STRING",
	"PaymentStatus":       "STRING",
	"FulfillmentStatus":   "STRING",
	"Subtotal":            "INTEGER",
	"Tax":                 "INTEGER",
	"Shipping":            "INTEGER",
	"Discount":            "INTEGER",
	"Total":               "INTEGER",
	"Paid":                "INTEGER",
	"Refunded":            "INTEGER",
	"CouponCodes_0":       "STRING",
	"CouponCodes_1":       "STRING",
	"CouponCodes_3":       "STRING",
	"Items_0_ProductId":   "STRING",
	"Items_0_ProductSlug": "STRING",
	"Items_1_ProductId":   "STRING",
	"Items_1_ProductSlug": "STRING",
	"Items_2_ProductId":   "STRING",
	"Items_2_ProductSlug": "STRING",
	"Items_3_ProductId":   "STRING",
	"Items_3_ProductSlug": "STRING",
	"Items_4_ProductId":   "STRING",
	"Items_4_ProductSlug": "STRING",
	"Metadata_":           "STRING",
	"CreatedAt":           "TIMESTAMP",
	"UpdatedAt":           "TIMESTAMP",
}
View Source
var UserFields = bigquery.Fields{
	"Id_":       "STRING",
	"FirstName": "STRING",
	"LastName":  "STRING",
	"Email":     "STRING",
	"Metadata_": "STRING",
	"CreatedAt": "TIMESTAMP",
	"UpdatedAt": "TIMESTAMP",
}

Functions

func GetProduct

func GetProduct(db *ds.Datastore, id string) string

func MustNukeCounter

func MustNukeCounter(db *ds.Datastore, tag string)

func MustNukeCounter2

func MustNukeCounter2(db *ds.Datastore, tag string)

func MustNukeCounter3

func MustNukeCounter3(db *ds.Datastore, tag string)

func MustNukeCounter4

func MustNukeCounter4(db *ds.Datastore, tag string)

func New

func New(name string, setupFn SetupFn, fns ...interface{}) *delay.Function

func NewBigQuery

func NewBigQuery(name string, setupFn SetupFn, fns ...interface{}) *delay.Function

func NoSetup

func NoSetup(c *gin.Context) []interface{}

Types

type Row

type SetupFn

type SetupFn func(*gin.Context) []interface{}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL