models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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 FormValue

type FormValue struct {
	Value string `json:"value"`
	Type  string `json:"type"`
}

type History

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

type InsertDataProps

type InsertDataProps struct {
	TableName string
	Values    map[string]FormValue
}

type ListDataCol

type ListDataCol struct {
	IsUnique         bool   `json:"isUnique"`
	Value            any    `json:"value"`
	ColumnName       string `json:"columnName"`
	DataType         string `json:"dataType"`
	InputType        string `json:"inputType"`
	HasAutoIncrement bool   `json:"hasAutoIncrement"`
	HasDefault       bool   `json:"hasDefault"`
}

type ListDataProps

type ListDataProps struct {
	TableName string `json:"tableName"`
	Limit     int    `json:"limit"`
	Offset    int    `json:"offset"`
	Column    string `json:"column"`
	Order     string `json:"order"`
}

type ListDataRow

type ListDataRow []any

type ListTablesRow

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

type QueryParts

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

Jump to

Keyboard shortcuts

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