- Lean's API WIP on forms and ApiRenderer

This commit is contained in:
Dave Mc Nicoll committed 2025-05-21 18:36:19 +00:00
1 parent 3ce356e1f2
commit 4d7053a9cb
30 files changed
+1003 -56

No files matched your search

+20 -1
View File
@@ -1,9 +1,28 @@
<?php
$path = dirname(__DIR__, 1);
return [
'lean' => [
'autoload' => [
'lean.api',
]
],
];
'ulmus' => [
'connections' => [
'lean.api' => [
'adapter' => getenv("LEAN_API_ADAPTER") ?: "SQLite",
'path' => getenv('PROJECT_PATH') . DIRECTORY_SEPARATOR . ( getenv("LEAN_API_PATH") ?: "var/lean-api.sqlite3" ),
'pragma_begin' => array_merge(
explode(',', getenv("LEAN_API_PRAGMA_BEGIN") ?: "foreign_keys=ON,synchronous=NORMAL"),
explode(',', getenv('DEBUG') ? getenv("LEAN_API_PRAGMA_DEBUG_BEGIN") : "journal_mode=WAL")
),
'pragma_close' => array_merge(
explode(',', getenv("LEAN_API_PRAGMA_CLOSE") ?: "analysis_limit=500,optimize"),
explode(',', getenv('DEBUG') ? getenv("LEAN_API_PRAGMA_DEBUG_CLOSE") : "")
),
],
]
]
];