models

package
v0.0.0-...-cb527ea Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Error string
}

type MappedRecords

type MappedRecords struct {
	Records json.RawMessage `json:"records"`
}

type QueryCondition

type QueryCondition struct {
	Type      string `json:"type"`
	Column    string `json:"column"`
	Parameter any    `json:"parameter"`
}

type QueryExpression

type QueryExpression struct {
	Conditions []QueryCondition
}

type TableDeleteResponse

type TableDeleteResponse struct {
	Deleted uint64 `json:"deleted"`
}

type TableInsert

type TableInsert struct {
	Records json.RawMessage `json:"records"`
}

type TableInsertResponse

type TableInsertResponse struct {
	Inserted uint64 `json:"inserted"`
}

type TableQuery

type TableQuery struct {
	Query QueryExpression `json:"query"`
}

type TableSchema

type TableSchema struct {
	Schema *storage.TableSchemaStructure `json:"schema"`
}

type TableUpdate

type TableUpdate struct {
	Query        QueryExpression `json:"query"`
	ColumnNames  []string        `json:"column_names"`
	ColumnValues []any           `json:"column_values"`
}

type TableUpdateResponse

type TableUpdateResponse struct {
	Updated uint64 `json:"updated"`
}

type Tables

type Tables struct {
	Tables map[string]int32 `json:"tables"`
}

Jump to

Keyboard shortcuts

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