parser

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTmcf

func ParseTmcf(tmcf string) (map[string]*TableSchema, error)

ParseTmcf parses TMCF into a map with key of the table name, and value being the TableSchema struct.

Types

type Column

type Column struct {
	Node     string
	Property string
}

Column represents a csv column' node and property.

type TableSchema

type TableSchema struct {
	// Keyed by column name.
	ColumnInfo map[string][]*Column
	// Keyed by node name and property.
	NodeSchema map[string]map[string]string
}

TableSchema Represents the schema of one table

Jump to

Keyboard shortcuts

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