@@ -257,6 +257,7 @@ async fn handle_get_config<C: Connector>(
257257 block_writes : config. block_writes ,
258258 block_reason : config. block_reason . clone ( ) ,
259259 max_db_size : Some ( max_db_size) ,
260+ max_row_size : Some ( config. max_row_size ) ,
260261 heartbeat_url : config. heartbeat_url . clone ( ) . map ( |u| u. into ( ) ) ,
261262 jwt_key : config. jwt_key . clone ( ) ,
262263 allow_attach : config. allow_attach ,
@@ -302,6 +303,8 @@ struct HttpDatabaseConfig {
302303 #[ serde( default ) ]
303304 max_db_size : Option < bytesize:: ByteSize > ,
304305 #[ serde( default ) ]
306+ max_row_size : Option < u64 > ,
307+ #[ serde( default ) ]
305308 heartbeat_url : Option < String > ,
306309 #[ serde( default ) ]
307310 jwt_key : Option < String > ,
@@ -333,6 +336,7 @@ async fn handle_post_config<C>(
333336 updated. block_reason = req. block_reason ;
334337 updated. allow_attach = req. allow_attach ;
335338 updated. txn_timeout = req. txn_timeout_s . map ( Duration :: from_secs) ;
339+ updated. max_row_size = req. max_row_size . unwrap_or ( updated. max_row_size ) ;
336340 if let Some ( size) = req. max_db_size {
337341 updated. max_db_pages = size. as_u64 ( ) / LIBSQL_PAGE_SIZE ;
338342 }
0 commit comments