fixtures

package
v2.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyEmbeddedType

type MyEmbeddedType struct {
	Fizz bool
	Buzz bool
}

MyEmbeddedType will be embedded in MyType

type MyOtherType

type MyOtherType struct {
	ID uuid.UUID `read_col:"my_other_type.id" write_col:"id"`
}

type MyType

type MyType struct {
	construct.Table `table_name:"my_type"`

	// ID is readable and writable
	ID uuid.UUID `read_col:"my_type.id" write_col:"id"`
	// Foo is readable and sortable
	Foo string `read_col:"my_type.foo,sortable" write_col:"foo"`
	// Bar is readable and writable (from a column with different name)
	Bar []byte `read_col:"my_type.the_bar" write_col:"the_bar"`
	// Baz should be embedded as JSON
	Baz MyEmbeddedType `read_col:"my_type.baz" write_col:"baz,json"`
	// LastTime is a readable, sortable and writable pointer column
	LastTime *time.Time `read_col:"my_type.last_time,sortable" write_col:"last_time"`
}

MyType is a fixture struct type

type NoStructMappingType

type NoStructMappingType struct {
	ID uuid.UUID
}

Directories

Path Synopsis
Code generated by construct, DO NOT EDIT.
Code generated by construct, DO NOT EDIT.

Jump to

Keyboard shortcuts

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