Documentation
¶
Overview ¶
Package importExportHelper contains helpers for importing and exporting data in various formats.
Index ¶
- Constants
- func ExportCSV[T any](exportName string, exportList []*T, idField entities.Field, mode mode) error
- func ExportDefaults[T any](exportList []*T, idField entities.Field) error
- func ExportJSON[T any](exportName string, exportList []*T, idField entities.Field) error
- func ImportCSV[T any](ctx context.Context, importName string, entryTypeToInsert T, ...) error
Constants ¶
View Source
const ( DEFAULTS mode = "DEFAULTS" SINGLE mode = "SINGLE" BULK mode = "BULK" FIELDSEPARATOR rune = '|' SEP string = "-" IMPORT string = "Import" EXPORT string = "Export" CSV fileExtension = "csv" JSON fileExtension = "json" )
Variables ¶
This section is empty.
Functions ¶
func ExportDefaults ¶ added in v0.7.0
func ExportJSON ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.