class Tabkv(T)

Defined in:

tabkv.cr

Constant Summary

Log = ::Log.for("tabkv")
VERSION = "0.2.0"

Constructors

Instance Method Summary

Instance methods inherited from class Object

to_tsv to_tsv

Class methods inherited from class Object

from_tsv(rows : Array(String)) from_tsv

Constructor Detail

def self.new(file : String, mode : Mode = :normal) #

[View source]

Instance Method Detail

def [](*args, **options) #

[View source]
def [](*args, **options, &) #

[View source]
def []?(*args, **options) #

[View source]
def []?(*args, **options, &) #

[View source]
def _buf #

[View source]
def append(key : String, value : T) #

[View source]
def append!(key : String, value : T) #

[View source]
def data #

[View source]
def delete(key : String) #

[View source]
def delete!(key : String) #

[View source]
def file : String #

[View source]
def load!(file : String = @file) : Int32 #

[View source]
def prune! #

[View source]
def save!(clean : Bool = false) : Nil #

[View source]
def to_tsv(io : IO, key : String, value : T) #

[View source]
def upsert(key : String, value : T) #

[View source]