InfluxElixir.Client.Local.SQLLimits (InfluxElixir v0.1.40)

Copy Markdown View Source

The ends of the engine's integer and float types, in one place for the SQL modules of InfluxElixir.Client.Local.

The macros expand to the literal, so they may stand in a pattern or a guard (require or import this module first):

defp f(int64_min()), do: ...
defp g(n) when n > uint64_max(), do: ...

Summary

Functions

The largest finite Float64.

The largest Int64.

The smallest Int64.

Whether the value is an integer an Int64 holds.

Whether the value is an integer a UInt64 holds.

The largest UInt64.

The integer, wrapped into Int64's range as two's complement arithmetic does.

The integer, wrapped into UInt64's range.

Functions

float_max()

(macro)
@spec float_max() :: float()

The largest finite Float64.

int64_max()

(macro)
@spec int64_max() :: 9_223_372_036_854_775_807

The largest Int64.

int64_min()

(macro)
@spec int64_min() :: -9_223_372_036_854_775_808

The smallest Int64.

is_int64(value)

(macro)

Whether the value is an integer an Int64 holds.

is_uint64(value)

(macro)

Whether the value is an integer a UInt64 holds.

uint64_max()

(macro)
@spec uint64_max() :: 18_446_744_073_709_551_615

The largest UInt64.

wrap_int64(value)

@spec wrap_int64(integer()) :: integer()

The integer, wrapped into Int64's range as two's complement arithmetic does.

wrap_uint64(value)

@spec wrap_uint64(integer()) :: non_neg_integer()

The integer, wrapped into UInt64's range.