package
0.0.0-20230101183712-202847b4b89b
Repository: https://github.com/corestoreio/pkg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Code generated by corestoreio/pkg/util/codegen.
Code generated by corestoreio/pkg/util/codegen.
Code generated by corestoreio/pkg/util/codegen.
Code generated by corestoreio/pkg/util/codegen.
Code generated by corestoreio/pkg/util/codegen.

# Functions

GenerateJSON creates the easysjon code for a specific file or a whole directory.
NewGenerator creates a new instance of the SQL table code generator.
RunProtoc searches all *.proto files in the given path and calls protoc to generate the Go source code.
WithBuildTags adds your build tags to the file header.
WithCustomCode inserts at the marker position your custom Go code.
WithCustomCodeFunc same as WithCustomCode but allows access to meta data.
WithForeignKeyRelationships analyzes the foreign keys which points to a table and adds them as a struct field name.
WithProtobuf enables protocol buffers as a serialization method.
WithTable sets a table and its columns.
WithTableConfig applies options to an existing table, identified by the table name used as map key.
WithTableConfigDefault sets for all tables the same configuration but can be overwritten on a per table basis with function WithTableConfig.
WithTablesFromDB queries the information_schema table and loads the column definition of the provided `tables` slice.

# Constants

List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
creates the struct type.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
opentelemetry tracing.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
List of available features.
creates the struct type.
List of available features.
List of available features.

# Structs

ForeignKeyOptions applies to WithForeignKeyRelationships.
Generator can generated Go source for for database tables once correctly configured.
Option represents a sortable option for the NewGenerator function.
ProtocOptions allows to modify the protoc CLI command.
SerializerConfig applies various optional settings to WithProtobuf and/or WithFlatbuffers and/or WithTypeScript.
table writes one database table into Go source code.
TableConfig used in conjunction with WithTableConfig and WithTableConfigDefault to apply different configurations for a generated struct and its struct collection.
TypeDef used in variable `mysqlTypeToGo` to map a MySQL/MariaDB type to its appropriate Go and serializer type.

# Type aliases

FeatureToggle allows certain generated code blocks to be switched off or on.