pub async fn open_database_from_transport_with_guard(
pool: Option<&SqlitePool>,
vfs_name: String,
transport: SqliteTransportHandle,
actor_id: String,
generation: u64,
rt_handle: Handle,
metrics: Option<Arc<dyn SqliteVfsMetrics>>,
guard: Option<ConnectionGuard>,
) -> Result<NativeDatabaseHandle>Expand description
Like open_database_from_transport_on_pool, with guard installed on the connection for
SQL sent by an untrusted peer. vfs_name must be unique in the process while the database
is open: registering a second VFS under a live name replaces the first.