Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDuplicationError ¶
Types ¶
type ContextExecutor ¶
type Deduplicator ¶
type Deduplicator struct {
// contains filtered or unexported fields
}
func NewDeduplicator ¶
func NewDeduplicator(db ContextExecutor, tableName string, schemaAdapter DeduplicatorSchemaAdapter) *Deduplicator
func (*Deduplicator) Deduplicate ¶
func (*Deduplicator) InitializeSchema ¶
func (d *Deduplicator) InitializeSchema(ctx context.Context) error
type DeduplicatorPostgresSchemaAdapter ¶
type DeduplicatorPostgresSchemaAdapter struct{}
func (DeduplicatorPostgresSchemaAdapter) InitializeSchemaQuery ¶
func (a DeduplicatorPostgresSchemaAdapter) InitializeSchemaQuery(tableName string) string
func (DeduplicatorPostgresSchemaAdapter) InsertQuery ¶
func (a DeduplicatorPostgresSchemaAdapter) InsertQuery(tableName string) string
func (DeduplicatorPostgresSchemaAdapter) IsDuplicationError ¶
func (a DeduplicatorPostgresSchemaAdapter) IsDuplicationError(tableName string, dberr error) bool
type DuplicationError ¶
type DuplicationError struct {
Err error
}
func (DuplicationError) Error ¶
func (e DuplicationError) Error() string
func (DuplicationError) Unwrap ¶
func (e DuplicationError) Unwrap() error
type Extension ¶
type Extension struct {
entc.DefaultExtension
}
Click to show internal directories.
Click to hide internal directories.