models

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package models conatains the models of database qureies and forms

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColType added in v0.1.7

type ColType struct {
	DataType         string `json:"dataType"`
	HasSize          bool   `json:"hasSize"`
	HasValues        bool   `json:"hasValues,omitempty"`
	HasDigit         bool   `json:"hasDigit,omitempty"`
	HasAutoIncrement bool   `json:"hasAutoIncrement"`
	HasDefault       bool   `json:"hasDefault"`
	IsUnique         bool   `json:"isUnique"`
	IsPk             bool   `json:"isPk"`
	IsNull           bool   `json:"isNull"`
	InputType        string `json:"inputType" enum:"text,number,checkbox,textarea,json,select"`
}

type ColValue added in v0.1.7

type ColValue struct {
	ColumnName   string  `json:"columnName"`
	Value        any     `json:"value,omitempty"`
	DefaultValue any     `json:"defaultValue,omitempty"`
	Size         int     `json:"size,omitempty"`
	ColumnType   ColType `json:"columnType"`
}

type History

type History struct {
	ID      int       `json:"id"`
	Message string    `json:"message"`
	Time    time.Time `json:"time"`
}

type ListTablesRow

type ListTablesRow struct {
	TableSchema string `json:"tableSchema"`
	TableName   string `json:"tableName"`
}

type QueryParts

type QueryParts struct {
	Columns      string
	Placeholders string
	Args         []any
}

type RowSet added in v0.1.7

type RowSet struct {
	Columns []ColValue `json:"columns"`
	Hash    string     `json:"hash"`
}

type RunSQLQueryOutput added in v0.1.7

type RunSQLQueryOutput struct {
	Columns []string `json:"columns"`
	Rows    [][]any  `json:"rows"`
}

Jump to

Keyboard shortcuts

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