types

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package types holds Kusto type information that is used to describe what type would be held in a cell based on the column's type setting.

The type information here is used to define what types of paramaters will substituted for in Stmt objects and to do discovery on table columns, if trying to do some type of dynamic discovery.

Column

Column represents a Column type. A user should never try to implemenet these. Instead they should use the constants defined in this package, such as types.Bool, types.DateTime, ... Any other value that these will not pass the Column.Valid() method and will be rejected by the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column string

Column represents a type of column defined for Kusto. For more information, please see: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/

const (
	// Bool indicates that a Column stores a Kusto boolean value.
	Bool Column = "bool"
	// DateTime indicates that a Column stores a Kusto datetime value.
	DateTime Column = "datetime"
	// Dynamic indicates that a Column stores a Kusto dynamic value.
	Dynamic Column = "dynamic"
	// GUID indicates that a Column stores a Kusto guid value.
	GUID Column = "guid"
	// Int indicates that a Column stores a Kusto int value.
	Int Column = "int"
	// Long indicates that a Column stores a Kusto long value.
	Long Column = "long"
	// Real indicates that a Column stores a Kusto real value.
	Real Column = "real"
	// String indicates that a Column stores a Kusto string value.
	String Column = "string"
	// Timespan indicates that a Column stores a Kusto timespan value.
	Timespan Column = "timespan"
	// Decimal indicates that a Column stores a Kusto decimal value.
	Decimal Column = "decimal" // We have NOT written a conversion
)

These constants represent the value type stored in a Column.

func (Column) Valid

func (c Column) Valid() bool

Valid returns true if the Column is a valid value.

Jump to

Keyboard shortcuts

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