schema

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVIndexer added in v0.5.0

type CSVIndexer struct {
	Files       []string
	Count       int
	Positions   []FileOffset
	ColumnNames []string
}

type CellValue

type CellValue struct {
	Value        any            `json:"v"`
	ContextValue map[string]any `json:"c,omitempty"`
}

type Dataset added in v0.5.0

type Dataset struct {
	ent.Schema
}

Dataset holds the schema definition for the Dataset entity.

func (Dataset) Edges added in v0.5.0

func (Dataset) Edges() []ent.Edge

Edges of the Dataset.

func (Dataset) Fields added in v0.5.0

func (Dataset) Fields() []ent.Field

Fields of the Dataset.

func (Dataset) Indexes added in v0.5.0

func (Dataset) Indexes() []ent.Index

func (Dataset) Mixin added in v0.5.0

func (Dataset) Mixin() []ent.Mixin

type FileOffset added in v0.5.0

type FileOffset struct {
	File   uint16
	Total  uint8 // each chunk has max 50 rows
	Offset int64
}

type Model added in v0.3.0

type Model struct {
	ent.Schema
}

Model holds the schema definition for the Model entity.

func (Model) Edges added in v0.3.0

func (Model) Edges() []ent.Edge

Edges of the Model.

func (Model) Fields added in v0.3.0

func (Model) Fields() []ent.Field

Fields of the Model.

func (Model) Mixin added in v0.3.0

func (Model) Mixin() []ent.Mixin

type NanoidMixin

type NanoidMixin struct {
	mixin.Schema
}

func (NanoidMixin) Fields

func (NanoidMixin) Fields() []ent.Field

type Provider added in v0.3.0

type Provider struct {
	ent.Schema
}

Provider holds the schema definition for the Provider entity.

func (Provider) Edges added in v0.3.0

func (Provider) Edges() []ent.Edge

Edges of the Provider.

func (Provider) Fields added in v0.3.0

func (Provider) Fields() []ent.Field

Fields of the Provider.

func (Provider) Mixin added in v0.3.0

func (Provider) Mixin() []ent.Mixin

type TableColumn

type TableColumn struct {
	ent.Schema
}

Column holds the schema definition for the Column entity.

func (TableColumn) Edges

func (TableColumn) Edges() []ent.Edge

Edges of the Column.

func (TableColumn) Fields

func (TableColumn) Fields() []ent.Field

Fields of the Column.

func (TableColumn) Indexes

func (TableColumn) Indexes() []ent.Index

func (TableColumn) Mixin

func (TableColumn) Mixin() []ent.Mixin

type TableMeta

type TableMeta struct {
	ent.Schema
}

TableMeta holds the schema definition for the TableMeta entity.

func (TableMeta) Edges

func (TableMeta) Edges() []ent.Edge

Edges of the TableMeta.

func (TableMeta) Fields

func (TableMeta) Fields() []ent.Field

Fields of the TableMeta.

func (TableMeta) Indexes

func (TableMeta) Indexes() []ent.Index

func (TableMeta) Mixin

func (TableMeta) Mixin() []ent.Mixin

type TableRow

type TableRow struct {
	ent.Schema
}

TableData holds the schema definition for the TableData entity.

func (TableRow) Edges

func (TableRow) Edges() []ent.Edge

Edges of the TableData.

func (TableRow) Fields

func (TableRow) Fields() []ent.Field

Fields of the TableData.

func (TableRow) Indexes

func (TableRow) Indexes() []ent.Index

func (TableRow) Mixin

func (TableRow) Mixin() []ent.Mixin

type TimeMixin

type TimeMixin struct {
	mixin.Schema
}

func (TimeMixin) Fields

func (TimeMixin) Fields() []ent.Field

type Workflow added in v0.4.0

type Workflow struct {
	ent.Schema
}

Workflow holds the schema definition for the Workflow entity.

func (Workflow) Edges added in v0.4.0

func (Workflow) Edges() []ent.Edge

Edges of the Workflow.

func (Workflow) Fields added in v0.4.0

func (Workflow) Fields() []ent.Field

Fields of the Workflow.

func (Workflow) Mixin added in v0.4.0

func (Workflow) Mixin() []ent.Mixin

type WorkflowStep added in v0.4.0

type WorkflowStep struct {
	Type WorkflowStepType `json:"type"`
	// SchemaFile string                `json:"schema_file"`
	// OnExists   WorkflowTableOnExists `json:"on_exists"`
	Payload json.RawMessage `json:"payload"`
}

type WorkflowStepType added in v0.4.0

type WorkflowStepType string
const (
	WorkflowStepTypeCreateTable  WorkflowStepType = "CreateTable"
	WorkflowStepTypeImport       WorkflowStepType = "Import"
	WorkflowStepTypeCreateColumn WorkflowStepType = "CreateColumn"
	WorkflowStepTypeDeleteColumn WorkflowStepType = "DeleteColumn"
	WorkflowStepTypeGenerate     WorkflowStepType = "Generate"
	WorkflowStepTypeAutofill     WorkflowStepType = "Autofill"
	WorkflowStepTypeExportTable  WorkflowStepType = "ExportTable"
	WorkflowStepTypeDeleteTable  WorkflowStepType = "DeleteTable"
)

type WorkflowTableOnExists added in v0.4.0

type WorkflowTableOnExists string
const (
	OnExistsStop     WorkflowTableOnExists = "Stop"
	OnExistsRecreate WorkflowTableOnExists = "Recreate"
	OnExistsSkip     WorkflowTableOnExists = "Skip"
)

type WorkflowVariable added in v0.4.0

type WorkflowVariable struct {
	Name         string               `json:"name"`
	Type         WorkflowVariableType `json:"type"`
	DefaultValue any                  `json:"default_value"`
	Options      []any                `json:"options"`
}

type WorkflowVariableType added in v0.4.0

type WorkflowVariableType string
const (
	WorkflowVariableTypeString  WorkflowVariableType = "string"
	WorkflowVariableTypeNumber  WorkflowVariableType = "number"
	WorkflowVariableTypeInteger WorkflowVariableType = "integer"
	WorkflowVariableTypeFile    WorkflowVariableType = "file"
)

Jump to

Keyboard shortcuts

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