modelid

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package modelid provides utilities for model identification.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidModelID = errors.New("invalid model ID format, expected database.table")

ErrInvalidModelID is returned when a model ID is not in the expected format.

Functions

func Format

func Format(database, table string) string

Format creates a standardized model ID from database and table names (format: "database.table").

func Parse

func Parse(modelID string) (database, table string, err error)

Parse splits a model ID into database and table components. Returns an error if the format is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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