debug.null() 函数
debug.null()
返回给定类型的 null 值。
函数类型签名
(?type: string) => A where A: Basic
更多信息,请参阅 函数类型签名。
参数
type
Null 类型。
支持的类型:
- string
- bytes
- int
- uint
- float
- bool
- time
- duration
- regexp
示例
在临时表流中包含 null 值
import "array"
import "internal/debug"
array.from(rows: [{a: 1, b: 2, c: 3}, {a: debug.null(type: "int"), b: 5, c: 6}])
此页面是否对您有帮助?
感谢您的反馈!