tempDirectory property Null safety

String? tempDirectory

Reads the sqlite3_temp_directory variable.

See also: https://www.sqlite.org/c3ref/temp_directory.html

Implementation

String? get tempDirectory {
  final charPtr = _sqlite3_temp_directory.value;
  if (charPtr.isNullPointer) {
    return null;
  } else {
    return charPtr.readString();
  }
}
void tempDirectory=(String? value)

Overrides the sqlite3_temp_directory variable.

Note that this operation might not be safe if a database connection is being used at the same time in different isolates.

See also: https://www.sqlite.org/c3ref/temp_directory.html

Implementation

set tempDirectory(String? value) {
  if (value == null) {
    _sqlite3_temp_directory.value = nullPtr();
  } else {
    _sqlite3_temp_directory.value = allocateZeroTerminated(value);
  }
}