1. MooseStack
  2. Data Types
  3. Named Tuple Types

On this page

UsageArrays of TuplesSee Also

Named Tuple Types

Named tuples provide structured data with named fields, similar to lightweight nested objects.

Usage

import { ClickHouseNamedTuple } from "@514labs/moose-lib"; interface Point {  x: number;  y: number;} interface Shape {  center: Point & ClickHouseNamedTuple;    // Named tuple  radius: number;}

Arrays of Tuples

import { ClickHouseNamedTuple } from "@514labs/moose-lib"; interface Coordinate {  x: number;  y: number;} interface Path {  points: (Coordinate & ClickHouseNamedTuple)[];    // Array(Tuple(x Float64, y Float64))}
Tuples vs Nested

Named tuples are more lightweight than nested types and are stored inline. Use tuples for simple structures with a few fields; use nested types for more complex hierarchies.

See Also

  • Nested — For complex hierarchical structures
  • Arrays — Lists of values
  • ClickHouse Tuple — ClickHouse official documentation
import { ClickHouseNamedTuple } from "@514labs/moose-lib"; interface Point {  x: number;  y: number;} interface Shape {  center: Point & ClickHouseNamedTuple;    // Named tuple  radius: number;}
import { ClickHouseNamedTuple } from "@514labs/moose-lib"; interface Coordinate {  x: number;  y: number;} interface Path {  points: (Coordinate & ClickHouseNamedTuple)[];    // Array(Tuple(x Float64, y Float64))}
  • Overview
  • Quick Start
  • Templates / Examples
Fundamentals
  • Moose Runtime
  • MooseDev MCP
  • Data Modeling
MooseStack in your App
  • App / API frameworks
Modules
  • Moose OLAP
  • Moose Streaming
  • Moose Workflows
  • Moose APIs
Deployment & Lifecycle
  • Moose Migrate
  • Moose Deploy
Reference
  • API Reference
  • Data Types
    • Strings
    • LowCardinality
    • Integers
    • Floats
    • Decimals
    • Booleans
    • Date & Time
    • Network
    • Arrays
    • Maps
    • Nested
    • Tuples
    • Enums
    • Geometry
    • JSON
    • Nullable
    • Aggregates
  • Table Engines
  • CLI
  • Configuration
  • Observability Metrics
  • Help
  • Changelog
Contribution
  • Documentation
  • Framework
FiveonefourFiveonefour
Fiveonefour Docs
MooseStackTemplates
Changelog
Source506