@@ -257,6 +257,7 @@ async fn handle_get_config<C: Connector>(
257
257
block_writes : config. block_writes ,
258
258
block_reason : config. block_reason . clone ( ) ,
259
259
max_db_size : Some ( max_db_size) ,
260
+ max_row_size : Some ( config. max_row_size ) ,
260
261
heartbeat_url : config. heartbeat_url . clone ( ) . map ( |u| u. into ( ) ) ,
261
262
jwt_key : config. jwt_key . clone ( ) ,
262
263
allow_attach : config. allow_attach ,
@@ -302,6 +303,8 @@ struct HttpDatabaseConfig {
302
303
#[ serde( default ) ]
303
304
max_db_size : Option < bytesize:: ByteSize > ,
304
305
#[ serde( default ) ]
306
+ max_row_size : Option < u64 > ,
307
+ #[ serde( default ) ]
305
308
heartbeat_url : Option < String > ,
306
309
#[ serde( default ) ]
307
310
jwt_key : Option < String > ,
@@ -333,6 +336,7 @@ async fn handle_post_config<C>(
333
336
updated. block_reason = req. block_reason ;
334
337
updated. allow_attach = req. allow_attach ;
335
338
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 ) ;
336
340
if let Some ( size) = req. max_db_size {
337
341
updated. max_db_pages = size. as_u64 ( ) / LIBSQL_PAGE_SIZE ;
338
342
}
0 commit comments