tpch

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	// contains filtered or unexported fields
}

func (Column) Name

func (c Column) Name() string

func (Column) Precision

func (c Column) Precision() int

func (Column) Scale

func (c Column) Scale() int

func (Column) Type

func (c Column) Type() Type

type Customer

type Customer struct {
	CustomerKey    Identifier `tpch:"c_custkey"`
	Name           string     `tpch:"c_name,25"`
	Address        string     `tpch:"c_address,40"`
	NationKey      Identifier `tpch:"c_nationkey"`
	Phone          string     `tpch:"c_phone,25"`
	AccountBalance float64    `tpch:"c_acctbal"`
	MarketSegment  string     `tpch:"c_mktsegment,10"`
	Comment        string     `tpch:"c_comment,117"`
}

type Entity

type Entity struct {
	// contains filtered or unexported fields
}

func (Entity) Columns

func (e Entity) Columns() ctr.SliceMap[string, Column]

func (Entity) Indexes

func (e Entity) Indexes() ctr.List[ctr.List[string]]

func (Entity) Name

func (e Entity) Name() string

func (Entity) PrimaryKey

func (e Entity) PrimaryKey() ctr.List[string]

type EntitySet

type EntitySet struct {
	// contains filtered or unexported fields
}

func (EntitySet) Entities

func (es EntitySet) Entities() ctr.Map[string, *Entity]

type Identifier

type Identifier int64

type LineItem

type LineItem struct {
	OrderKey      Identifier `tpch:"l_orderkey"`
	PartKey       Identifier `tpch:"l_partkey"`
	SupplierKey   Identifier `tpch:"l_suppkey"`
	LineNumber    int64      `tpch:"l_linenumber"`
	Quantity      float64    `tpch:"l_quantity"`
	ExtendedPrice float64    `tpch:"l_extendedprice"`
	Discount      float64    `tpch:"l_discount"`
	Tax           float64    `tpch:"l_tax"`
	ReturnFlag    string     `tpch:"l_returnflag,1"`
	LineStatus    string     `tpch:"l_linestatus,1"`
	ShipDate      time.Time  `tpch:"l_shipdate"`
	CommitDate    time.Time  `tpch:"l_commitdate"`
	ReceiptDate   time.Time  `tpch:"l_receiptdate"`
	ShipInstruct  string     `tpch:"l_shipinstruct,25"`
	ShipMode      string     `tpch:"l_shipmode,10"`
	Comment       string     `tpch:"l_comment,44"`
}

type Nation

type Nation struct {
	NationKey Identifier `tpch:"n_nationkey"`
	Name      string     `tpch:"n_name,25"`
	RegionKey Identifier `tpch:"n_regionkey"`
	Comment   string     `tpch:"n_comment,152"`
}

type Order

type Order struct {
	OrderKey      Identifier `tpch:"o_orderkey"`
	CustomerKey   Identifier `tpch:"o_custkey"`
	OrderStatus   string     `tpch:"o_orderstatus,1"`
	TotalPrice    float64    `tpch:"o_totalprice"`
	OrderDate     time.Time  `tpch:"o_orderdate"`
	OrderPriority string     `tpch:"o_orderpriority,15"`
	Clerk         string     `tpch:"o_clerk,15"`
	ShipPriority  int64      `tpch:"o_shippriority"`
	Comment       string     `tpch:"o_comment,79"`
}

type Part

type Part struct {
	PartKey      Identifier `tpch:"p_partkey"`
	Name         string     `tpch:"p_name,55"`
	Manufacturer string     `tpch:"p_mfgr,25"`
	Brand        string     `tpch:"p_brand,10"`
	Type         string     `tpch:"p_type,25"`
	Size         int64      `tpch:"p_size"`
	Container    string     `tpch:"p_container,10"`
	RetailPrice  float64    `tpch:"p_retailprice"`
	Comment      string     `tpch:"p_comment,23"`
}

type PartSupplier

type PartSupplier struct {
	PartKey           Identifier `tpch:"ps_partkey"`
	SupplierKey       Identifier `tpch:"ps_suppkey"`
	AvailableQuantity int64      `tpch:"ps_availqty"`
	SupplyCost        float64    `tpch:"ps_supplycost"`
	Comment           string     `tpch:"ps_comment,199"`
}

type Region

type Region struct {
	RegionKey Identifier `tpch:"r_regionkey"`
	Name      string     `tpch:"r_name,25"`
	Comment   string     `tpch:"r_comment,152"`
}

type Supplier

type Supplier struct {
	SupplierKey    Identifier `tpch:"s_suppkey"`
	Name           string     `tpch:"s_name,25"`
	Address        string     `tpch:"s_address,40"`
	NationKey      Identifier `tpch:"s_nationkey"`
	Phone          string     `tpch:"s_phone,15"`
	AccountBalance float64    `tpch:"s_acctbal"`
	Comment        string     `tpch:"s_comment,101"`
}

type Type

type Type int8
const (
	InvalidType Type = iota
	IntegerType
	IdentifierType
	DateType
	DoubleType
	VarcharType
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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