aali_graphdb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CypherQueryReadGeneric

func CypherQueryReadGeneric[T any](client *Client, db string, cypher string, parameters Parameters) ([]T, error)

func CypherQueryWriteGeneric

func CypherQueryWriteGeneric[T any](client *Client, db string, cypher string, parameters Parameters) ([]T, error)

Types

type AnyLogicalType

type AnyLogicalType struct{}

func (AnyLogicalType) IsKuzuLogicalType

func (lt AnyLogicalType) IsKuzuLogicalType()

func (AnyLogicalType) MarshalJSON

func (lt AnyLogicalType) MarshalJSON() ([]byte, error)

func (*AnyLogicalType) UnmarshalJSON

func (lt *AnyLogicalType) UnmarshalJSON(data []byte) error

type ArrayLogicalType

type ArrayLogicalType struct {
	ChildType   LogicalType `json:"child_type"`
	NumElements uint64      `json:"num_elements"`
}

func (ArrayLogicalType) IsKuzuLogicalType

func (lt ArrayLogicalType) IsKuzuLogicalType()

func (ArrayLogicalType) MarshalJSON

func (lt ArrayLogicalType) MarshalJSON() ([]byte, error)

func (*ArrayLogicalType) UnmarshalJSON

func (lt *ArrayLogicalType) UnmarshalJSON(data []byte) error

type ArrayValue

type ArrayValue struct {
	LogicalType LogicalType `json:"logical_type"`
	Values      []Value     `json:"values"`
}

func (ArrayValue) IsKuzuValue

func (v ArrayValue) IsKuzuValue()

func (ArrayValue) MarshalJSON

func (v ArrayValue) MarshalJSON() ([]byte, error)

func (*ArrayValue) UnmarshalJSON

func (v *ArrayValue) UnmarshalJSON(data []byte) error

type BlobLogicalType

type BlobLogicalType struct{}

func (BlobLogicalType) IsKuzuLogicalType

func (lt BlobLogicalType) IsKuzuLogicalType()

func (BlobLogicalType) MarshalJSON

func (lt BlobLogicalType) MarshalJSON() ([]byte, error)

func (*BlobLogicalType) UnmarshalJSON

func (lt *BlobLogicalType) UnmarshalJSON(data []byte) error

type BlobValue

type BlobValue []uint8

func (BlobValue) IsKuzuValue

func (v BlobValue) IsKuzuValue()

func (BlobValue) MarshalJSON

func (v BlobValue) MarshalJSON() ([]byte, error)

func (*BlobValue) UnmarshalJSON

func (v *BlobValue) UnmarshalJSON(data []byte) error

type BoolLogicalType

type BoolLogicalType struct{}

func (BoolLogicalType) IsKuzuLogicalType

func (lt BoolLogicalType) IsKuzuLogicalType()

func (BoolLogicalType) MarshalJSON

func (lt BoolLogicalType) MarshalJSON() ([]byte, error)

func (*BoolLogicalType) UnmarshalJSON

func (lt *BoolLogicalType) UnmarshalJSON(data []byte) error

type BoolValue

type BoolValue bool

func (BoolValue) IsKuzuValue

func (v BoolValue) IsKuzuValue()

func (BoolValue) MarshalJSON

func (v BoolValue) MarshalJSON() ([]byte, error)

func (*BoolValue) UnmarshalJSON

func (v *BoolValue) UnmarshalJSON(data []byte) error

type Client

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

func DefaultClient

func DefaultClient(address string) (*Client, error)

func NewClient

func NewClient(address string, httpClient *http.Client) (*Client, error)

func (Client) CreateDatabase

func (client Client) CreateDatabase(name string) error

func (*Client) CypherQueryRead

func (client *Client) CypherQueryRead(db string, cypher string, parameters Parameters) ([]map[string]any, error)

func (*Client) CypherQueryWrite

func (client *Client) CypherQueryWrite(db string, cypher string, parameters Parameters) ([]map[string]any, error)

func (Client) DeleteDatabase

func (client Client) DeleteDatabase(name string) error

func (Client) GetDatabases

func (client Client) GetDatabases() ([]string, error)

func (Client) GetHealth

func (client Client) GetHealth() (bool, error)

type DateLogicalType

type DateLogicalType struct{}

func (DateLogicalType) IsKuzuLogicalType

func (lt DateLogicalType) IsKuzuLogicalType()

func (DateLogicalType) MarshalJSON

func (lt DateLogicalType) MarshalJSON() ([]byte, error)

func (*DateLogicalType) UnmarshalJSON

func (lt *DateLogicalType) UnmarshalJSON(data []byte) error

type DateValue

type DateValue civil.Date

func (DateValue) IsKuzuValue

func (v DateValue) IsKuzuValue()

func (DateValue) MarshalJSON

func (v DateValue) MarshalJSON() ([]byte, error)

func (*DateValue) UnmarshalJSON

func (v *DateValue) UnmarshalJSON(data []byte) error

type DecimalLogicalType

type DecimalLogicalType struct {
	Precision uint32 `json:"precision"`
	Scale     uint32 `json:"scale"`
}

func (DecimalLogicalType) IsKuzuLogicalType

func (lt DecimalLogicalType) IsKuzuLogicalType()

func (DecimalLogicalType) MarshalJSON

func (lt DecimalLogicalType) MarshalJSON() ([]byte, error)

func (*DecimalLogicalType) UnmarshalJSON

func (lt *DecimalLogicalType) UnmarshalJSON(data []byte) error

type DecimalValue

type DecimalValue decimal.Decimal

func (DecimalValue) IsKuzuValue

func (v DecimalValue) IsKuzuValue()

func (DecimalValue) MarshalJSON

func (v DecimalValue) MarshalJSON() ([]byte, error)

func (*DecimalValue) UnmarshalJSON

func (v *DecimalValue) UnmarshalJSON(data []byte) error

type DoubleLogicalType

type DoubleLogicalType struct{}

func (DoubleLogicalType) IsKuzuLogicalType

func (lt DoubleLogicalType) IsKuzuLogicalType()

func (DoubleLogicalType) MarshalJSON

func (lt DoubleLogicalType) MarshalJSON() ([]byte, error)

func (*DoubleLogicalType) UnmarshalJSON

func (lt *DoubleLogicalType) UnmarshalJSON(data []byte) error

type DoubleValue

type DoubleValue float64

func (DoubleValue) IsKuzuValue

func (v DoubleValue) IsKuzuValue()

func (DoubleValue) MarshalJSON

func (v DoubleValue) MarshalJSON() ([]byte, error)

func (*DoubleValue) UnmarshalJSON

func (v *DoubleValue) UnmarshalJSON(data []byte) error

type FloatLogicalType

type FloatLogicalType struct{}

func (FloatLogicalType) IsKuzuLogicalType

func (lt FloatLogicalType) IsKuzuLogicalType()

func (FloatLogicalType) MarshalJSON

func (lt FloatLogicalType) MarshalJSON() ([]byte, error)

func (*FloatLogicalType) UnmarshalJSON

func (lt *FloatLogicalType) UnmarshalJSON(data []byte) error

type FloatValue

type FloatValue float32

func (FloatValue) IsKuzuValue

func (v FloatValue) IsKuzuValue()

func (FloatValue) MarshalJSON

func (v FloatValue) MarshalJSON() ([]byte, error)

func (*FloatValue) UnmarshalJSON

func (v *FloatValue) UnmarshalJSON(data []byte) error

type Int128LogicalType

type Int128LogicalType struct{}

func (Int128LogicalType) IsKuzuLogicalType

func (lt Int128LogicalType) IsKuzuLogicalType()

func (Int128LogicalType) MarshalJSON

func (lt Int128LogicalType) MarshalJSON() ([]byte, error)

func (*Int128LogicalType) UnmarshalJSON

func (lt *Int128LogicalType) UnmarshalJSON(data []byte) error

type Int128Value

type Int128Value int64

func (Int128Value) IsKuzuValue

func (v Int128Value) IsKuzuValue()

func (Int128Value) MarshalJSON

func (v Int128Value) MarshalJSON() ([]byte, error)

func (*Int128Value) UnmarshalJSON

func (v *Int128Value) UnmarshalJSON(data []byte) error

type Int16LogicalType

type Int16LogicalType struct{}

func (Int16LogicalType) IsKuzuLogicalType

func (lt Int16LogicalType) IsKuzuLogicalType()

func (Int16LogicalType) MarshalJSON

func (lt Int16LogicalType) MarshalJSON() ([]byte, error)

func (*Int16LogicalType) UnmarshalJSON

func (lt *Int16LogicalType) UnmarshalJSON(data []byte) error

type Int16Value

type Int16Value int16

func (Int16Value) IsKuzuValue

func (v Int16Value) IsKuzuValue()

func (Int16Value) MarshalJSON

func (v Int16Value) MarshalJSON() ([]byte, error)

func (*Int16Value) UnmarshalJSON

func (v *Int16Value) UnmarshalJSON(data []byte) error

type Int32LogicalType

type Int32LogicalType struct{}

func (Int32LogicalType) IsKuzuLogicalType

func (lt Int32LogicalType) IsKuzuLogicalType()

func (Int32LogicalType) MarshalJSON

func (lt Int32LogicalType) MarshalJSON() ([]byte, error)

func (*Int32LogicalType) UnmarshalJSON

func (lt *Int32LogicalType) UnmarshalJSON(data []byte) error

type Int32Value

type Int32Value int32

func (Int32Value) IsKuzuValue

func (v Int32Value) IsKuzuValue()

func (Int32Value) MarshalJSON

func (v Int32Value) MarshalJSON() ([]byte, error)

func (*Int32Value) UnmarshalJSON

func (v *Int32Value) UnmarshalJSON(data []byte) error

type Int64LogicalType

type Int64LogicalType struct{}

func (Int64LogicalType) IsKuzuLogicalType

func (lt Int64LogicalType) IsKuzuLogicalType()

func (Int64LogicalType) MarshalJSON

func (lt Int64LogicalType) MarshalJSON() ([]byte, error)

func (*Int64LogicalType) UnmarshalJSON

func (lt *Int64LogicalType) UnmarshalJSON(data []byte) error

type Int64Value

type Int64Value int64

func (Int64Value) IsKuzuValue

func (v Int64Value) IsKuzuValue()

func (Int64Value) MarshalJSON

func (v Int64Value) MarshalJSON() ([]byte, error)

func (*Int64Value) UnmarshalJSON

func (v *Int64Value) UnmarshalJSON(data []byte) error

type Int8LogicalType

type Int8LogicalType struct{}

func (Int8LogicalType) IsKuzuLogicalType

func (lt Int8LogicalType) IsKuzuLogicalType()

func (Int8LogicalType) MarshalJSON

func (lt Int8LogicalType) MarshalJSON() ([]byte, error)

func (*Int8LogicalType) UnmarshalJSON

func (lt *Int8LogicalType) UnmarshalJSON(data []byte) error

type Int8Value

type Int8Value int8

func (Int8Value) IsKuzuValue

func (v Int8Value) IsKuzuValue()

func (Int8Value) MarshalJSON

func (v Int8Value) MarshalJSON() ([]byte, error)

func (*Int8Value) UnmarshalJSON

func (v *Int8Value) UnmarshalJSON(data []byte) error

type InternalID

type InternalID struct {
	TableID uint64 `json:"table_id"`
	Offset  uint64 `json:"offset"`
}

type InternalIDLogicalType

type InternalIDLogicalType struct{}

func (InternalIDLogicalType) IsKuzuLogicalType

func (lt InternalIDLogicalType) IsKuzuLogicalType()

func (InternalIDLogicalType) MarshalJSON

func (lt InternalIDLogicalType) MarshalJSON() ([]byte, error)

func (*InternalIDLogicalType) UnmarshalJSON

func (lt *InternalIDLogicalType) UnmarshalJSON(data []byte) error

type InternalIDValue

type InternalIDValue InternalID

func (InternalIDValue) IsKuzuValue

func (v InternalIDValue) IsKuzuValue()

func (InternalIDValue) MarshalJSON

func (v InternalIDValue) MarshalJSON() ([]byte, error)

func (*InternalIDValue) UnmarshalJSON

func (v *InternalIDValue) UnmarshalJSON(data []byte) error

type IntervalLogicalType

type IntervalLogicalType struct{}

func (IntervalLogicalType) IsKuzuLogicalType

func (lt IntervalLogicalType) IsKuzuLogicalType()

func (IntervalLogicalType) MarshalJSON

func (lt IntervalLogicalType) MarshalJSON() ([]byte, error)

func (*IntervalLogicalType) UnmarshalJSON

func (lt *IntervalLogicalType) UnmarshalJSON(data []byte) error

type IntervalValue

type IntervalValue time.Duration

func (IntervalValue) IsKuzuValue

func (v IntervalValue) IsKuzuValue()

func (IntervalValue) MarshalJSON

func (v IntervalValue) MarshalJSON() ([]byte, error)

func (*IntervalValue) UnmarshalJSON

func (v *IntervalValue) UnmarshalJSON(data []byte) error

type ListLogicalType

type ListLogicalType struct {
	ChildType LogicalType `json:"child_type"`
}

func (ListLogicalType) IsKuzuLogicalType

func (lt ListLogicalType) IsKuzuLogicalType()

func (ListLogicalType) MarshalJSON

func (lt ListLogicalType) MarshalJSON() ([]byte, error)

func (*ListLogicalType) UnmarshalJSON

func (lt *ListLogicalType) UnmarshalJSON(data []byte) error

type ListValue

type ListValue struct {
	LogicalType LogicalType `json:"logical_type"`
	Values      []Value     `json:"values"`
}

func (ListValue) IsKuzuValue

func (v ListValue) IsKuzuValue()

func (ListValue) MarshalJSON

func (v ListValue) MarshalJSON() ([]byte, error)

func (*ListValue) UnmarshalJSON

func (v *ListValue) UnmarshalJSON(data []byte) error

type LogicalType

type LogicalType interface {
	IsKuzuLogicalType()
}

This is the interface to implement on any kuzu Logical type, to indicate that it is such.

type MapLogicalType

type MapLogicalType struct {
	KeyType   LogicalType `json:"key_type"`
	ValueType LogicalType `json:"value_type"`
}

func (MapLogicalType) IsKuzuLogicalType

func (lt MapLogicalType) IsKuzuLogicalType()

func (MapLogicalType) MarshalJSON

func (lt MapLogicalType) MarshalJSON() ([]byte, error)

func (*MapLogicalType) UnmarshalJSON

func (lt *MapLogicalType) UnmarshalJSON(data []byte) error

type MapValue

type MapValue struct {
	KeyType   LogicalType     `json:"key_type"`
	ValueType LogicalType     `json:"value_type"`
	Pairs     map[Value]Value `json:"pairs"`
}

func (MapValue) IsKuzuValue

func (v MapValue) IsKuzuValue()

func (MapValue) MarshalJSON

func (v MapValue) MarshalJSON() ([]byte, error)

func (*MapValue) UnmarshalJSON

func (v *MapValue) UnmarshalJSON(data []byte) error

type NodeLogicalType

type NodeLogicalType struct{}

func (NodeLogicalType) IsKuzuLogicalType

func (lt NodeLogicalType) IsKuzuLogicalType()

func (NodeLogicalType) MarshalJSON

func (lt NodeLogicalType) MarshalJSON() ([]byte, error)

func (*NodeLogicalType) UnmarshalJSON

func (lt *NodeLogicalType) UnmarshalJSON(data []byte) error

type NodeValue

type NodeValue struct {
	ID         InternalID       `json:"id"`
	Label      string           `json:"label"`
	Properties map[string]Value `json:"properties"`
}

func (NodeValue) IsKuzuValue

func (v NodeValue) IsKuzuValue()

func (NodeValue) MarshalJSON

func (v NodeValue) MarshalJSON() ([]byte, error)

func (*NodeValue) UnmarshalJSON

func (v *NodeValue) UnmarshalJSON(data []byte) error

type NullValue

type NullValue struct {
	LogicalType LogicalType `json:"logical_type"`
}

func (NullValue) IsKuzuValue

func (v NullValue) IsKuzuValue()

func (NullValue) MarshalJSON

func (v NullValue) MarshalJSON() ([]byte, error)

func (*NullValue) UnmarshalJSON

func (v *NullValue) UnmarshalJSON(data []byte) error

type ParameterMap

type ParameterMap map[string]Value

func (ParameterMap) AsParameters

func (params ParameterMap) AsParameters() (map[string]Value, error)

func (*ParameterMap) UnmarshalJSON

func (pm *ParameterMap) UnmarshalJSON(data []byte) error

type Parameters

type Parameters interface {
	AsParameters() (map[string]Value, error)
}

type RecursiveRelLogicalType

type RecursiveRelLogicalType struct{}

func (RecursiveRelLogicalType) IsKuzuLogicalType

func (lt RecursiveRelLogicalType) IsKuzuLogicalType()

func (RecursiveRelLogicalType) MarshalJSON

func (lt RecursiveRelLogicalType) MarshalJSON() ([]byte, error)

func (*RecursiveRelLogicalType) UnmarshalJSON

func (lt *RecursiveRelLogicalType) UnmarshalJSON(data []byte) error

type RecursiveRelValue

type RecursiveRelValue struct {
	Nodes []NodeValue `json:"nodes"`
	Rels  []RelValue  `json:"rels"`
}

func (RecursiveRelValue) IsKuzuValue

func (v RecursiveRelValue) IsKuzuValue()

func (RecursiveRelValue) MarshalJSON

func (v RecursiveRelValue) MarshalJSON() ([]byte, error)

func (*RecursiveRelValue) UnmarshalJSON

func (v *RecursiveRelValue) UnmarshalJSON(data []byte) error

type RelLogicalType

type RelLogicalType struct{}

func (RelLogicalType) IsKuzuLogicalType

func (lt RelLogicalType) IsKuzuLogicalType()

func (RelLogicalType) MarshalJSON

func (lt RelLogicalType) MarshalJSON() ([]byte, error)

func (*RelLogicalType) UnmarshalJSON

func (lt *RelLogicalType) UnmarshalJSON(data []byte) error

type RelValue

type RelValue struct {
	SrcNode    InternalID       `json:"src_node"`
	DstNode    InternalID       `json:"dst_node"`
	Label      string           `json:"label"`
	Properties map[string]Value `json:"properties"`
}

func (RelValue) IsKuzuValue

func (v RelValue) IsKuzuValue()

func (RelValue) MarshalJSON

func (v RelValue) MarshalJSON() ([]byte, error)

func (*RelValue) UnmarshalJSON

func (v *RelValue) UnmarshalJSON(data []byte) error

type SerialLogicalType

type SerialLogicalType struct{}

func (SerialLogicalType) IsKuzuLogicalType

func (lt SerialLogicalType) IsKuzuLogicalType()

func (SerialLogicalType) MarshalJSON

func (lt SerialLogicalType) MarshalJSON() ([]byte, error)

func (*SerialLogicalType) UnmarshalJSON

func (lt *SerialLogicalType) UnmarshalJSON(data []byte) error

type StringLogicalType

type StringLogicalType struct{}

func (StringLogicalType) IsKuzuLogicalType

func (lt StringLogicalType) IsKuzuLogicalType()

func (StringLogicalType) MarshalJSON

func (lt StringLogicalType) MarshalJSON() ([]byte, error)

func (*StringLogicalType) UnmarshalJSON

func (lt *StringLogicalType) UnmarshalJSON(data []byte) error

type StringValue

type StringValue string

func (StringValue) IsKuzuValue

func (v StringValue) IsKuzuValue()

func (StringValue) MarshalJSON

func (v StringValue) MarshalJSON() ([]byte, error)

func (*StringValue) UnmarshalJSON

func (v *StringValue) UnmarshalJSON(data []byte) error

type StructLogicalType

type StructLogicalType struct {
	Fields []Twople[string, LogicalType] `json:"fields"`
}

func (StructLogicalType) IsKuzuLogicalType

func (lt StructLogicalType) IsKuzuLogicalType()

func (StructLogicalType) MarshalJSON

func (lt StructLogicalType) MarshalJSON() ([]byte, error)

func (*StructLogicalType) UnmarshalJSON

func (lt *StructLogicalType) UnmarshalJSON(data []byte) error

type StructValue

type StructValue map[string]Value

func (StructValue) IsKuzuValue

func (v StructValue) IsKuzuValue()

func (StructValue) MarshalJSON

func (v StructValue) MarshalJSON() ([]byte, error)

func (*StructValue) UnmarshalJSON

func (v *StructValue) UnmarshalJSON(data []byte) error

type TimestampLogicalType

type TimestampLogicalType struct{}

func (TimestampLogicalType) IsKuzuLogicalType

func (lt TimestampLogicalType) IsKuzuLogicalType()

func (TimestampLogicalType) MarshalJSON

func (lt TimestampLogicalType) MarshalJSON() ([]byte, error)

func (*TimestampLogicalType) UnmarshalJSON

func (lt *TimestampLogicalType) UnmarshalJSON(data []byte) error

type TimestampMsLogicalType

type TimestampMsLogicalType struct{}

func (TimestampMsLogicalType) IsKuzuLogicalType

func (lt TimestampMsLogicalType) IsKuzuLogicalType()

func (TimestampMsLogicalType) MarshalJSON

func (lt TimestampMsLogicalType) MarshalJSON() ([]byte, error)

func (*TimestampMsLogicalType) UnmarshalJSON

func (lt *TimestampMsLogicalType) UnmarshalJSON(data []byte) error

type TimestampMsValue

type TimestampMsValue time.Time

func (TimestampMsValue) IsKuzuValue

func (v TimestampMsValue) IsKuzuValue()

func (TimestampMsValue) MarshalJSON

func (v TimestampMsValue) MarshalJSON() ([]byte, error)

func (*TimestampMsValue) UnmarshalJSON

func (v *TimestampMsValue) UnmarshalJSON(data []byte) error

type TimestampNsLogicalType

type TimestampNsLogicalType struct{}

func (TimestampNsLogicalType) IsKuzuLogicalType

func (lt TimestampNsLogicalType) IsKuzuLogicalType()

func (TimestampNsLogicalType) MarshalJSON

func (lt TimestampNsLogicalType) MarshalJSON() ([]byte, error)

func (*TimestampNsLogicalType) UnmarshalJSON

func (lt *TimestampNsLogicalType) UnmarshalJSON(data []byte) error

type TimestampNsValue

type TimestampNsValue time.Time

func (TimestampNsValue) IsKuzuValue

func (v TimestampNsValue) IsKuzuValue()

func (TimestampNsValue) MarshalJSON

func (v TimestampNsValue) MarshalJSON() ([]byte, error)

func (*TimestampNsValue) UnmarshalJSON

func (v *TimestampNsValue) UnmarshalJSON(data []byte) error

type TimestampSecLogicalType

type TimestampSecLogicalType struct{}

func (TimestampSecLogicalType) IsKuzuLogicalType

func (lt TimestampSecLogicalType) IsKuzuLogicalType()

func (TimestampSecLogicalType) MarshalJSON

func (lt TimestampSecLogicalType) MarshalJSON() ([]byte, error)

func (*TimestampSecLogicalType) UnmarshalJSON

func (lt *TimestampSecLogicalType) UnmarshalJSON(data []byte) error

type TimestampSecValue

type TimestampSecValue time.Time

func (TimestampSecValue) IsKuzuValue

func (v TimestampSecValue) IsKuzuValue()

func (TimestampSecValue) MarshalJSON

func (v TimestampSecValue) MarshalJSON() ([]byte, error)

func (*TimestampSecValue) UnmarshalJSON

func (v *TimestampSecValue) UnmarshalJSON(data []byte) error

type TimestampTzLogicalType

type TimestampTzLogicalType struct{}

func (TimestampTzLogicalType) IsKuzuLogicalType

func (lt TimestampTzLogicalType) IsKuzuLogicalType()

func (TimestampTzLogicalType) MarshalJSON

func (lt TimestampTzLogicalType) MarshalJSON() ([]byte, error)

func (*TimestampTzLogicalType) UnmarshalJSON

func (lt *TimestampTzLogicalType) UnmarshalJSON(data []byte) error

type TimestampTzValue

type TimestampTzValue time.Time

func (TimestampTzValue) IsKuzuValue

func (v TimestampTzValue) IsKuzuValue()

func (TimestampTzValue) MarshalJSON

func (v TimestampTzValue) MarshalJSON() ([]byte, error)

func (*TimestampTzValue) UnmarshalJSON

func (v *TimestampTzValue) UnmarshalJSON(data []byte) error

type TimestampValue

type TimestampValue time.Time

func (TimestampValue) IsKuzuValue

func (v TimestampValue) IsKuzuValue()

func (TimestampValue) MarshalJSON

func (v TimestampValue) MarshalJSON() ([]byte, error)

func (*TimestampValue) UnmarshalJSON

func (v *TimestampValue) UnmarshalJSON(data []byte) error

type Twople

type Twople[A any, B any] struct {
	// contains filtered or unexported fields
}

helper type for serializing 2-tuples

func (Twople[A, B]) MarshalJSON

func (tup Twople[A, B]) MarshalJSON() ([]byte, error)

func (*Twople[A, B]) UnmarshalJSON

func (tup *Twople[A, B]) UnmarshalJSON(data []byte) error

type UInt16LogicalType

type UInt16LogicalType struct{}

func (UInt16LogicalType) IsKuzuLogicalType

func (lt UInt16LogicalType) IsKuzuLogicalType()

func (UInt16LogicalType) MarshalJSON

func (lt UInt16LogicalType) MarshalJSON() ([]byte, error)

func (*UInt16LogicalType) UnmarshalJSON

func (lt *UInt16LogicalType) UnmarshalJSON(data []byte) error

type UInt16Value

type UInt16Value uint16

func (UInt16Value) IsKuzuValue

func (v UInt16Value) IsKuzuValue()

func (UInt16Value) MarshalJSON

func (v UInt16Value) MarshalJSON() ([]byte, error)

func (*UInt16Value) UnmarshalJSON

func (v *UInt16Value) UnmarshalJSON(data []byte) error

type UInt32LogicalType

type UInt32LogicalType struct{}

func (UInt32LogicalType) IsKuzuLogicalType

func (lt UInt32LogicalType) IsKuzuLogicalType()

func (UInt32LogicalType) MarshalJSON

func (lt UInt32LogicalType) MarshalJSON() ([]byte, error)

func (*UInt32LogicalType) UnmarshalJSON

func (lt *UInt32LogicalType) UnmarshalJSON(data []byte) error

type UInt32Value

type UInt32Value uint32

func (UInt32Value) IsKuzuValue

func (v UInt32Value) IsKuzuValue()

func (UInt32Value) MarshalJSON

func (v UInt32Value) MarshalJSON() ([]byte, error)

func (*UInt32Value) UnmarshalJSON

func (v *UInt32Value) UnmarshalJSON(data []byte) error

type UInt64LogicalType

type UInt64LogicalType struct{}

func (UInt64LogicalType) IsKuzuLogicalType

func (lt UInt64LogicalType) IsKuzuLogicalType()

func (UInt64LogicalType) MarshalJSON

func (lt UInt64LogicalType) MarshalJSON() ([]byte, error)

func (*UInt64LogicalType) UnmarshalJSON

func (lt *UInt64LogicalType) UnmarshalJSON(data []byte) error

type UInt64Value

type UInt64Value uint64

func (UInt64Value) IsKuzuValue

func (v UInt64Value) IsKuzuValue()

func (UInt64Value) MarshalJSON

func (v UInt64Value) MarshalJSON() ([]byte, error)

func (*UInt64Value) UnmarshalJSON

func (v *UInt64Value) UnmarshalJSON(data []byte) error

type UInt8LogicalType

type UInt8LogicalType struct{}

func (UInt8LogicalType) IsKuzuLogicalType

func (lt UInt8LogicalType) IsKuzuLogicalType()

func (UInt8LogicalType) MarshalJSON

func (lt UInt8LogicalType) MarshalJSON() ([]byte, error)

func (*UInt8LogicalType) UnmarshalJSON

func (lt *UInt8LogicalType) UnmarshalJSON(data []byte) error

type UInt8Value

type UInt8Value uint8

func (UInt8Value) IsKuzuValue

func (v UInt8Value) IsKuzuValue()

func (UInt8Value) MarshalJSON

func (v UInt8Value) MarshalJSON() ([]byte, error)

func (*UInt8Value) UnmarshalJSON

func (v *UInt8Value) UnmarshalJSON(data []byte) error

type UUIDLogicalType

type UUIDLogicalType struct{}

func (UUIDLogicalType) IsKuzuLogicalType

func (lt UUIDLogicalType) IsKuzuLogicalType()

func (UUIDLogicalType) MarshalJSON

func (lt UUIDLogicalType) MarshalJSON() ([]byte, error)

func (*UUIDLogicalType) UnmarshalJSON

func (lt *UUIDLogicalType) UnmarshalJSON(data []byte) error

type UUIDValue

type UUIDValue uuid.UUID

func (UUIDValue) IsKuzuValue

func (v UUIDValue) IsKuzuValue()

func (UUIDValue) MarshalJSON

func (v UUIDValue) MarshalJSON() ([]byte, error)

func (*UUIDValue) UnmarshalJSON

func (v *UUIDValue) UnmarshalJSON(data []byte) error

type UnionLogicalType

type UnionLogicalType struct {
	Fields []Twople[string, LogicalType] `json:"fields"`
}

func (UnionLogicalType) IsKuzuLogicalType

func (lt UnionLogicalType) IsKuzuLogicalType()

func (UnionLogicalType) MarshalJSON

func (lt UnionLogicalType) MarshalJSON() ([]byte, error)

func (*UnionLogicalType) UnmarshalJSON

func (lt *UnionLogicalType) UnmarshalJSON(data []byte) error

type UnionValue

type UnionValue struct {
	Types map[string]LogicalType `json:"types"`
	Value Value                  `json:"value"`
}

func (UnionValue) IsKuzuValue

func (v UnionValue) IsKuzuValue()

func (UnionValue) MarshalJSON

func (v UnionValue) MarshalJSON() ([]byte, error)

func (*UnionValue) UnmarshalJSON

func (v *UnionValue) UnmarshalJSON(data []byte) error

type Value

type Value interface {
	IsKuzuValue()
}

This is the interface to implement on any kuzu value, to indicate that it is such.

Jump to

Keyboard shortcuts

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