@@ -292,18 +292,18 @@ Litestar Plugin Configuration
292292.. literalinclude :: /examples/usage/test_configuration_23.py
293293 :language: python
294294 :caption: `litestar plugin configuration `
295- :lines: 10-31
295+ :lines: 2-26
296296 :dedent: 2
297297
298298Environment-Based Configuration
299299-------------------------------
300300
301301Use environment variables for configuration:
302302
303- .. literalinclude :: /examples/usage/test_configuration_23 .py
303+ .. literalinclude :: /examples/usage/test_configuration_24 .py
304304 :language: python
305305 :caption: `environnment-based configuration `
306- :lines: 49-59
306+ :lines: 25-41
307307 :dedent: 4
308308
309309Configuration Best Practices
@@ -313,7 +313,7 @@ Configuration Best Practices
313313
314314Always use pooling in production:
315315
316- .. literalinclude :: /examples/usage/test_configuration_24 .py
316+ .. literalinclude :: /examples/usage/test_configuration_25 .py
317317 :language: python
318318 :caption: `connection pooling `
319319 :lines: 11-13
@@ -323,7 +323,7 @@ Always use pooling in production:
323323
324324Enable caching to avoid recompiling SQL statements:
325325
326- .. literalinclude :: /examples/usage/test_configuration_25 .py
326+ .. literalinclude :: /examples/usage/test_configuration_26 .py
327327 :language: python
328328 :caption: `enable caching `
329329 :lines: 6-8
@@ -333,28 +333,28 @@ Enable caching to avoid recompiling SQL statements:
333333
334334Size pools based on your workload:
335335
336- .. literalinclude :: /examples/usage/test_configuration_26 .py
336+ .. literalinclude :: /examples/usage/test_configuration_27 .py
337337 :language: python
338338 :caption: `tune pool sizes `
339- :lines: 6-14
339+ :lines: 3-20
340340 :dedent: 2
341341
342342**4. Disable Validation in Production **
343343
344344For trusted, performance-critical queries:
345345
346- .. literalinclude :: /examples/usage/test_configuration_26 .py
346+ .. literalinclude :: /examples/usage/test_configuration_28 .py
347347 :language: python
348348 :caption: `no validation `
349- :lines: 19-25
349+ :lines: 6-12
350350 :dedent: 2
351351
352352
353353**5. Clean Up Resources **
354354
355355Always close pools on shutdown:
356356
357- .. literalinclude :: /examples/usage/test_configuration_27 .py
357+ .. literalinclude :: /examples/usage/test_configuration_29 .py
358358 :language: python
359359 :caption: `cleanup resources `
360360 :lines: 10-27
0 commit comments