metabase

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertProject

func ConvertProject(data []byte, opts Options) (*Project, Report, error)

ConvertProject converts a Metabase dashboard and returns any generated DAC semantic model files alongside the dashboard.

Types

type Options

type Options struct {
	Connection     string
	Strict         bool
	Semantic       bool
	SemanticStrict bool
}

type Project

type Project struct {
	Dashboard      *dashboard.Dashboard
	SemanticModels []SemanticModelFile
}

type Report

type Report struct {
	WidgetCount         int
	SQLWidgetCount      int
	SemanticWidgetCount int
	SemanticModelCount  int
	PlaceholderCount    int
	Warnings            []string
}

func Convert

func Convert(data []byte, opts Options) (*dashboard.Dashboard, Report, error)

Convert converts a Metabase dashboard API response or serialized dashboard document into a DAC dashboard. Native SQL questions are converted to data widgets. Supported query-builder/MBQL cards are compiled to SQL; unsupported cards are represented as text placeholders unless Strict is set.

type SemanticModelFile

type SemanticModelFile struct {
	Filename string
	Model    *sem.Model
}

Jump to

Keyboard shortcuts

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