module Onyx::SQL::Converters::PG::JSONB(T)

Overview

Converts between the PostgreSQL's "JSONB" type and Crystal objects. It works the same way as the JSON converter does, but with "JSONB" type.

OPTIMIZE Refactor to extend the JSON module. Currently impossible due to https://github.com/crystal-lang/crystal/issues/7167.

Defined in:

onyx-sql/converters/pg/jsonb.cr

Class Method Summary

Class Method Detail

def self.from_rs(rs : DB::ResultSet) : T? #

[View source]
def self.from_rs_array(rs) : T? #

[View source]
def self.to_db(value : T) : DB::Any #

[View source]