int64 method
Use this as the body of a getter to declare a column that holds a 64-big integer as a BigInt.
The main purpose of this column is to support large integers for web apps
compiled to JavaScript, where using an int does not reliably work for
numbers larger than 2⁵².
It stores the exact same data as an integer
column (and supports the
same options), but instructs drift to generate a data class with a
BigInt field and a database conversion aware of large intergers.
Note: The use of int64
is only necessary for apps that need to work
on the web and use columns that are likely to store values larger than
2⁵². In all other cases, using integer
directly is much more efficient
and recommended.
Implementation
@protected
ColumnBuilder<BigInt> int64() => _isGenerated();