Documentation ¶ Overview ¶ Package exportschema contains a re-usable Main function that exports an SQL schema as a JSON seriailized schema.Description. Index ¶ func Main(args []string, tables interface{}, schemaAsString string) error 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. Source Files ¶ View all Source files exportschema.go Click to show internal directories. Click to hide internal directories.