OutputBuffer

class vertica_sdk.OutputBuffer

Interface for writing a raw data stream.

setEncoding(self, encoding)

Specify the encoding of the data written to the underlying buffer.

write(self, data)

Transfer bytes from the data object into Vertica. If encoding is None, the data object will be implicitly converted to bytes. Otherwise, the specified encoding will be used to convert the data to bytes.

The buffer offset will be advanced the number of bytes written.

Returns an object which is a slice of the input data object, corresponding to any data which did not fit in the buffer.