rows

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllColumns

type AllColumns struct {
	// embed required enrichment fields
	schema.CommonFields

	// Additional fields
	// Numeric types
	SmallInt int16   `json:"smallint_column"`
	Integer  int32   `json:"integer_column"`
	BigInt   int64   `json:"bigint_column"`
	UTinyInt uint8   `json:"utinyint_column"`
	UInteger uint32  `json:"uinteger_column"`
	UBigInt  uint64  `json:"ubigint_column"`
	Float    float32 `json:"float_column"`
	Double   float64 `json:"double_column"`
	Decimal  float64 `json:"decimal_column"`

	// String types
	Varchar string `json:"varchar_column"`
	Char    string `json:"char_column"`

	// Boolean type
	Boolean bool `json:"boolean_column"`

	// Date/Time types
	Date      time.Time `json:"date_column"`
	Timestamp time.Time `json:"timestamp_column"`

	// Interval type
	Interval string `json:"interval_column"` // Using string as placeholder for interval

	// ArrayStruct type (simplified to slice of integers for this example)
	IntArray []int32 `json:"int_array_column"`

	// CreatedAt time.Time `json:"created_at"`
	CreatedAt time.Time `json:"created_at"`

	// Id
	Id int `json:"id"`
}

AllColumns is the struct containing the enriched data

type ComplexNestedStruct

type ComplexNestedStruct struct {
	Id int64 `json:"id"`

	SubStructs []*SimpleStruct `json:"sub_structs,omitempty"`
}

type DateTime

type DateTime struct {
	// embed required enrichment fields
	schema.CommonFields

	Id        string    `json:"id"`
	Timestamp time.Time `json:"timestamp"`
}

DateTime is the struct containing the enriched data

type NestedStruct

type NestedStruct struct {
	Id   int64         `json:"id"`
	Name string        `json:"name"`
	Sub  *SimpleStruct `json:"sub,omitempty"`
}

type SimpleStruct

type SimpleStruct struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

type StructColumns

type StructColumns struct {
	// embed required enrichment fields
	schema.CommonFields

	Identifier string    `json:"identifier"`
	Timestamp  time.Time `json:"timestamp"`

	// Additional fields
	SimpleStruct        *SimpleStruct        `json:"simple_struct,omitempty"`
	ArrayStruct         *StructWithArray     `json:"array_struct,omitempty"`
	NestedStruct        *NestedStruct        `json:"nested_struct,omitempty"`
	ComplexNestedStruct *ComplexNestedStruct `json:"complex_nested_struct,omitempty"`
}

type StructWithArray

type StructWithArray struct {
	Id      int64 `json:"id"`
	Numbers []int `json:"numbers"`
}

Jump to

Keyboard shortcuts

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