package
0.0.0-20231215233255-5eee6075d0e8
Repository: https://github.com/crawl/go-sequell.git
Documentation: pkg.go.dev

# Functions

LookupKey normalizes a lookupValue into its canonical form.
New creates a new loader given a database connection, server and schema configs, an xlog normalizer and the set of game type mappings of Crawl game types to their table prefixes.
NewBuffer creates a new xlog load buffer.
NewTableLookup returns a new table lookup object capable of caching up to capacity rows worth of lookups.
NormalizeValue replaces underscores in value with spaces for text values that must be accessible through Sequell's query interface.
ReaderNormalizedLog adds log reader metadata to x and normalizes x using normalizer.

# Variables

ErrDuplicateRow means the loader found an xlogfile row exactly identical to a previously inserted row.

# Structs

A Loader loads game and milestone records into Sequell's database.
A LookupValue is a string Value that belongs in a lookup table, along with any derived values that can be calculated from the Value.
A Reader reads records suing an XlogReader (i.e.
A TableLookup collects a list of lookup field values that must be inserted into a lookup table, and replaced by their corresponding foreign keys.
An XlogBuffer accumulates a list of xlogs to be loaded.

# Interfaces

A LogNormalizer cleans up an xlog record in some way.