struct

StarDB::Value

Inherits Struct < Value < Object

Represents a typed value that can be stored in the database

Constructors

deserialize(io : IO) : Value
Source
new(type : Type, data : Bytes)
Source

Class methods

from(value : Nil)

Create a value from various types

Source
from(value : Bool)
Source
from(value : Int8)
Source
from(value : Int16)
Source
from(value : Int32)
Source
from(value : Int64)
Source
from(value : UInt8)
Source
from(value : UInt16)
Source
from(value : UInt32)
Source
from(value : UInt64)
Source
from(value : Float32)
Source
from(value : Float64)
Source
from(value : String)
Source
from(value : Bytes)
Source

Instance methods

as_bool
Source
as_bytes
Source
as_f32
Source
as_f64
Source
as_i16
Source
as_i32
Source
as_i64
Source
as_i8
Source
as_nil
Source
as_s
Source
as_u16
Source
as_u32
Source
as_u64
Source
as_u8
Source
serialize(io : IO)
Source
size
Source
type
Source

Nested types