MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewIntValue

Function NewIntValue

value/value.go:466–468  ·  view source on GitHub ↗
(v int64)

Source from the content-addressed store, hash-verified

464func (m NumberValue) Int() int64 { return int64(m.v) }
465
466func NewIntValue(v int64) IntValue {
467 return IntValue{v: v}
468}
469
470func NewIntNil() IntValue {
471 v := IntValue{v: math.MinInt32}

Callers 15

lenEvalFunction · 0.92
toIntEvalFunction · 0.92
stringIndexEvalFunction · 0.92
yearEvalFunction · 0.92
monthEvalFunction · 0.92
dayOfWeekEvalFunction · 0.92
hourOfWeekEvalFunction · 0.92
hourOfDayEvalFunction · 0.92
toTimestampEvalFunction · 0.92
incrementEvalFunction · 0.92
hashSipEvalFunction · 0.92
builtins_test.goFile · 0.92

Calls

no outgoing calls

Tested by 10

BenchmarkVmExecuteFunction · 0.74
TestSqlDeleteFunction · 0.74
TestIntValueFunction · 0.68
TestCastFunction · 0.68
TestEqualFunction · 0.68
TestValueToStringFunction · 0.68
TestValueToStringsFunction · 0.68
TestValueToTimeFunction · 0.68
TestIsBoolFunction · 0.68