exportschema

package
v0.0.0-...-f3bf748 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package exportschema contains a re-usable Main function that exports an SQL schema as a JSON seriailized schema.Description.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(args []string, tables interface{}, schemaAsString string) error

Main exports the expected schema as a serialized schema.Description.

Note that this works by requiring a local instance of the CockroachDB emulator to be running, so this is not appropriate to call in a go:generate statement.

Types

This section is empty.

Jump to

Keyboard shortcuts

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