columnBytes method

int columnBytes(
  1. int index
)

Calls sqlite3_column_bytes with the given index, returning the length of the value in bytes.

For text values, this is the length of their UTF-8 encoding. Note that calling this on an integer or a float column converts the value to text (see https://sqlite.org/c3ref/column_blob.html). Use columnType to check the type first.

Note that this performs no bounds check against columnCount in Dart.

Implementation

int columnBytes(int index) {
  return rawStatement.sqlite3_column_byte_length(index);
}