model

package
v0.0.0-...-51e91f3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 0 Imported by: 0

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
	DataType     string
	Length       int64
	Scale        int64
	DefaultValue string
	IsNull       bool
	IsPrimary    bool
	IsForeign    bool
	Constraints  []string
	Indexes      []string
}

type Config

type Config struct {
	HostName     string
	Port         int
	UserName     string
	Password     string
	DatabaseName string
	Options      map[string]string
}

type Constraint

type Constraint struct {
	Name       string
	Owner      string
	Definition string
}

type Database

type Database struct {
	Name       string
	Owner      string
	Tablespace string
	Collation  string
	CreatedAt  string
	Size       float64
	Schemas    []string
	Options    map[string]string
	Definition string
}

type Index

type Index struct {
	Name       string
	Owner      string
	Method     string
	IsUnique   bool
	IsCluster  bool
	Columns    []string
	Definition string
}

type Metadata

type Metadata struct {
	Database     string
	Schema       string
	Table        string
	Password     string
	DatabaseName string
	Options      map[string]string
}

type SampleData

type SampleData struct {
	Table     Table
	Method    string
	TotalData float64
}

type Table

type Table struct {
	Name        string
	Owner       string
	Size        float64
	Columns     []string
	Constraints []string
	Triggers    []string
	Indexes     []string
	Definition  string
}

type Trigger

type Trigger struct {
	Name       string
	Comment    string
	Event      string
	Condition  string
	Definition string
}

Jump to

Keyboard shortcuts

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