class CQL::Postgres::CopyIn

Overview

Sends the body of a COPY ... FROM STDIN. Anything written is framed as CopyData and handed to the stream whenever a chunk has built up. It is only valid inside the block it was yielded to.

Defined in:

postgres/copy_stream.cr

Constant Summary

FLUSH_THRESHOLD = 64 * 1024

Constructors

Instance Method Summary

Constructor Detail

def self.new(buffer : IO::Memory, flush : Proc(Nil)) #

[View source]

Instance Method Detail

def <<(text : String) : self #

[View source]
def write(chunk : Bytes) : Nil #

[View source]