norm/types

Custom Nim types to give granular control over DB types.

Types

StringOfCap[C] = distinct string
PaddedStringOfCap[C] = distinct string

Funcs

func newStringOfCap[C: static[int]](val = ""): StringOfCap[C]
func newPaddedStringOfCap[C: static[int]](val = ""): PaddedStringOfCap[C]
func `==`[_](x, y: StringOfCap[_]): bool
func `==`[_](x, y: PaddedStringOfCap[_]): bool
func `$`[_](s: StringOfCap[_]): string
func `$`[_](s: PaddedStringOfCap[_]): string