column_origin_name method

String? column_origin_name(
  1. PtrStmt arg1,
  2. int arg2
)
inherited

Implementation

String? column_origin_name(PtrStmt arg1, int arg2) {
  PtrString result = ffi.nullptr;
  if (_h_sqlite3_column_origin_name == null) {
    throw dbsql.DatabaseException(
        'API sqlite3_column_origin_name is not available, You need to enable it during library build.');
  }
  try {
    var result = _h_sqlite3_column_origin_name!(arg1, arg2);
    return result == ffi.nullptr ? null : result.toDartString();
  } finally {
    pkgffi.malloc.free(result);
  }
}