table

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name        string `json:"name,omitempty"`
	Field       string `json:"field,omitempty"`
	Type        string `json:"type,omitempty"`
	Format      string `json:"format,omitempty"`
	Description string `json:"description,omitempty"`
	Priority    int    `json:"priority,omitempty"`
}

type ColumnMapper

type ColumnMapper struct {
	mappers.EmptyMapper
	// contains filtered or unexported fields
}

func NewColumns

func NewColumns(computed func(data.Object), columns ...Column) *ColumnMapper

func (*ColumnMapper) FromInternal

func (t *ColumnMapper) FromInternal(d data.Object)

func (*ColumnMapper) ModifySchema

func (t *ColumnMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

type Table

type Table struct {
	Columns  []Column
	Computed func(data.Object)
}

Jump to

Keyboard shortcuts

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