catalog

package
Version: v0.0.0-...-3ea58b1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package catalog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name   string
	Length int
	TypeID types.ID
}

Column represents a single column in a tuple

func (*Column) String

func (c *Column) String() string

String represents the struct in human readable way

type Schema

type Schema struct {
	// contains filtered or unexported fields
}

Schema represents the schema of a table

func NewSchema

func NewSchema(columns []Column) *Schema

NewSchema constructs a schema based on a set of columns

func (*Schema) String

func (s *Schema) String() string

String formats the tuple schema in human readable format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL