You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: config.rs
    path of file: ./repos/libsql/libsql-server/src/connection
    
    the code of the file until where you have to start completion: use crate::{namespace::NamespaceName, LIBSQL_PAGE_SIZE};
use bytesize::mb;
use url::Url;

use libsql_replication::rpc::metada
    
    fn from(value: &metadata::DatabaseConfig) -> Self {
        DatabaseConfig {
            block_reads: value.block_reads,
            block_writes: value.block_writes,
            block_reason: value.block_reason.clone(),
            max_db_pages: value.max_db_pages,
            heartbeat_url: value.heartbeat_url.as_ref().map(|s| Url::parse(s).unwrap()),
            bottomless_db_id: value.bottomless_db_id.clone(),
            jwt_key: value.jwt_key.clone(),
            txn_timeout: value.txn_timeout_s.map(Duration::from_secs),
            allow_attach: value.allow_attach,
            max_row_size: value.max_row_size.unwrap_or_else(default_max_row_size),
            is_shared_schema: value.shared_schema.unwrap_or(false),
            // namespace name is coming from primary, we assume it's valid
            shared_schema_name: value
                .shared_schema_name
                .clone()
                .map(NamespaceName::new_unchecked),
        }
    }