pub fn export_database_schema() -> Result<JsValue, JsValue>Expand description
Export database schema information as JSON.
This function extracts table definitions and returns them as a JavaScript object. In a real implementation, this would extract schema from SQLite metadata tables, but for demonstration purposes it currently returns a mock schema.
§Returns
Ok(JsValue)- The database schema as a JavaScript objectErr(JsValue)- An error message if serialization failed
§Example
// JavaScript
const schema = exportDatabaseSchema();
console.log(`Database has ${schema.tables.length} tables`);