Documentation ¶
Index ¶
Constants ¶
View Source
const MaxCommentLength = 255
MaxCommentLength is the maximum size of column comments allowed by Glue
Variables ¶
View Source
var TruncateComments = true
TruncateComments is a flag used to allow mage to disable comment truncation during mage:doc
Functions ¶
func ColumnName ¶
ColumnName normalizes names to be used for Glue table columns
func MustRegisterMapping ¶
Types ¶
type Column ¶
type Column struct { // Name is the name of the colunm Name string // Type is the glue schema type for the column. Type Type // this is the Glue type // Comment is used to set the comment in the glue column and also to set the // field description in generated documentation. Comment string // Required marks the column as required. // This information is used in documentation to mark fields as required. // It does not affect Glue schema in some way and this should be removed once // doc generation evolves to not use []glueschema.Column as input. Required bool }
Column is a table column in AWS Glue. We are using a separate struct from glue.Column to be able to mark the column as required
func InferColumns ¶
func InferColumnsCustom ¶
type Type ¶
type Type string
Type is a string representing a type in Glue schema
Click to show internal directories.
Click to hide internal directories.