Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 884 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 884 Bytes

sqlutil

Build Status

Godoc

NOTE API is not locked yet.

Works with Go 1.1+

Backend-agnostic SQL utilities. Github suggested I name this derp-octo-ironman. I almost did. Almost.

This library supplies:

  • Wrappers to Go's big.Int and big.Rat that allows them to be used with database/sql Scan and Exec functions to interact with arbitrary precision database fields. Also supplies Null* analogues for each of these.
  • Wrappers for NullString, NullInt64, NullFloat64 from database/sql that satisfiy the json.Marshaler interface.
  • An implementation of NullTime that satisfies the json.Marshaler interface as well as sql.Scanner and driver.Valuer for use with database/sql.