datalake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package datalake provides protocol data lake integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDuckDBQuery

func GenerateDuckDBQuery(table, protocol string) string

GenerateDuckDBQuery generates a DuckDB query template.

Types

type Column

type Column struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Nullable bool   `json:"nullable"`
}

Column represents a data column derived from protocol fields.

type ExportFormat

type ExportFormat string

ExportFormat represents a data export format.

const (
	FormatParquet ExportFormat = "parquet"
	FormatArrow   ExportFormat = "arrow"
	FormatCSV     ExportFormat = "csv"
	FormatJSON    ExportFormat = "json"
)

type Schema

type Schema struct {
	Protocol string   `json:"protocol"`
	Columns  []Column `json:"columns"`
}

Schema represents a data lake schema for a protocol.

func DeriveSchema

func DeriveSchema(protocol string, fields map[string]string) *Schema

DeriveSchema derives a data lake schema from protocol fields.

func (*Schema) Describe

func (s *Schema) Describe() string

Describe returns a schema description.

func (*Schema) GenerateSQL

func (s *Schema) GenerateSQL(tableName string) string

GenerateSQL generates a CREATE TABLE SQL statement.

Jump to

Keyboard shortcuts

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