src/norm/types

Custom Nim types to give granular control over DB types.

Types

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

Procs

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