json

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package json provides functionality for formatting database schemas as JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
}

Target implements the schema formatting and rendering functionality for JSON format.

func NewTarget

func NewTarget() *Target

NewTarget creates and returns a new JSON target instance.

func (*Target) Capabilities

func (t *Target) Capabilities() dberd.TargetCapabilities

Capabilities returns target capabilities.

func (*Target) FormatSchema

func (t *Target) FormatSchema(_ context.Context, s dberd.Schema) (dberd.FormattedSchema, error)

FormatSchema converts a database schema into a JSON-formatted representation. It returns a FormattedSchema containing the JSON data and format type.

func (*Target) RenderSchema

func (t *Target) RenderSchema(_ context.Context, _ dberd.FormattedSchema) ([]byte, error)

RenderSchema is unsupported for json target.

Jump to

Keyboard shortcuts

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