Documentation
¶
Index ¶
- Constants
- Variables
- func Check(err error, msg string, v ...any)
- func FindColumnTypes(r io.Reader, rowsReadLimit int, typeSetting string) ([]string, []string, error)
- func FormatNumber(n int64) string
- func GetFileSize(path string) (res string)
- func GetTableName(file string) string
- func IsCSVFile(name string) bool
- func IsGZIPFile(name string) bool
- func IsJSONFile(name string) bool
- func PrettyPrintJson(data any, w io.Writer)
- func RunInParallel(numWorkers int, items []string, fn func(item string) error) error
Constants ¶
View Source
const MaxRowsReadLimit = 25_000
Variables ¶
View Source
var ( Dynamic = "dynamic" AllText = "alltext" )
View Source
var ( CSV = "csv" JSONL = "jsonl" Both = "both" )
data formats
Functions ¶
func FindColumnTypes ¶
func FindColumnTypes(r io.Reader, rowsReadLimit int, typeSetting string) ([]string, []string, error)
Takes a reader as a parameter where the data inside it is JSONL.
func FormatNumber ¶
func GetFileSize ¶
func GetTableName ¶
func IsGZIPFile ¶
func IsJSONFile ¶
func PrettyPrintJson ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.