lsql-csv-0.1.0.4: A tool for CSV files data querying from the shell with short queries.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lsql.Csv.Core.Symbols

Description

This module contains the definition of Symbol, SymbolMap, and helper functions.

Synopsis

Documentation

data Symbol Source #

The datatype for a single named column (Symbol)

data SymbolMap Source #

The datatype containing a Map for aliases of Symbols and a list of all Tables

(-->) :: SymbolMap -> String -> Symbol Source #

Lookup for a Symbol (NamedColumn) in a SymbolMap

(==>) :: SymbolMap -> String -> Column Source #

Lookup for a Symbol (NamedColumn) in a SymbolMap returning a Column

getSymbolMap :: [Table] -> SymbolMap Source #

Generates a SymbolMap out of a list of Table.

symbolList :: SymbolMap -> [String] Source #

Returns the list of name aliases of all columns.

getTables :: SymbolMap -> [Table] Source #

Returns the list of Tables out of SymbolMap.