tempDirectory property Null safety
Reads the sqlite3_temp_directory
variable.
Implementation
String? get tempDirectory {
final charPtr = _sqlite3_temp_directory.value;
if (charPtr.isNullPointer) {
return null;
} else {
return charPtr.readString();
}
}
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.
Implementation
set tempDirectory(String? value) {
if (value == null) {
_sqlite3_temp_directory.value = nullPtr();
} else {
_sqlite3_temp_directory.value = allocateZeroTerminated(value);
}
}