exa/sqlite/comparators

Source   Edit  

This module provides the comparators used by the sqlite.nim module. it's here because it's quite frankly a lot of boring boilerplate that needs to be there or else the user won't have a good experience.

But it really is nothing but dull code that must exist, so I don't wanna lump it in with the main sqlite module and confuse users.

If you're here, and confused, then don't worry about this. This just makes exa a nicer library to use!

Procs

proc `==`(a, b: DbValue): bool {....raises: [], tags: [], forbids: [].}

This comparator allows you to compare between two "database values"

This is called implicitly by the Nim compiler.

Source   Edit  
proc `==`(a: DbValue; b: seq[byte]): bool {....raises: [], tags: [], forbids: [].}

This comparator allows you to compare between a "database value" and a real, native Nim datatype.

This is called implicitly by the Nim compiler.

Source   Edit  
proc `==`(a: DbValue; b: SomeFloat): bool

This comparator allows you to compare between a "database value" and a real, native Nim datatype.

This is called implicitly by the Nim compiler.

Source   Edit  
proc `==`(a: DbValue; b: SomeInteger): bool

This comparator allows you to compare between a "database value" and a real, native Nim datatype.

This is called implicitly by the Nim compiler.

Source   Edit  
proc `==`(a: DbValue; b: string): bool {....raises: [], tags: [], forbids: [].}

This comparator allows you to compare between a "database value" and a real, native Nim datatype.

This is called implicitly by the Nim compiler.

Source   Edit  
proc `==`(a: DbValue; b: type(nil)): bool {....raises: [], tags: [], forbids: [].}

This comparator allows you to compare between a "database value" and a real, native Nim datatype.

This is called implicitly by the Nim compiler.

Source   Edit