Documentation
¶
Overview ¶
Package bigintsum registers the dingo_bigint_sum SQLite aggregate with the pure-Go SQLite driver. Importing it is enough: registration happens once at package initialization and applies to every connection the driver opens afterwards.
The aggregate sums signed decimal text exactly. SQLite's own SUM raises an integer-overflow error past 64 bits and TOTAL is a float, so neither is exact for the unbounded delta_coin columns. It ignores NULL inputs and returns the total as decimal text, "0" when no row contributed.
It lives beside the SQLite provider rather than in the shared sqlstore package so that the PostgreSQL and MySQL providers do not link the SQLite driver.
Index ¶
Constants ¶
const Name = "dingo_bigint_sum"
Name is the SQL name of the aggregate.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.