API Reference / @evolu/common / Evolu/Internal / Config
Interface: Config
Defined in: packages/common/src/Evolu/Config.ts:6
Extends
Extended by
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
enableLogging? | readonly | boolean | Enable or disable console logging. When true, logs are output to the Console; when false, logging is disabled for all methods except error , which always outputs to ensure critical issues are not missed. Default is false. | ConsoleConfig .enableLogging | packages/common/src/Console.ts:79 |
indexes? | readonly | Indexex | Use the indexes option to define SQLite indexes. Table and column names are not typed because Kysely doesn't support it. https://medium.com/@JasonWyatt/squeezing-performance-from-sqlite-indexes-indexes-c4e175f3c346 ### Example const evolu = createEvolu(evoluReactDeps)(Schema, { indexes: (create) => [ create("todoCreatedAt").on("todo").column("createdAt"), create("todoCategoryCreatedAt") .on("todoCategory") .column("createdAt"), ], }); | - | packages/common/src/Evolu/Config.ts:63 |
maxDrift | readonly | number | Maximum physical clock drift allowed in ms. The default value is 5 * 60 * 1000 (5 minutes). | - | packages/common/src/Evolu/Config.ts:41 |
mnemonic? | readonly | string & Brand <"Trimmed" > & Brand <"MinLength1" > & Brand <"Mnemonic" > | Use this option to create Evolu with the specified mnemonic. If omitted, the mnemonic will be autogenerated. That should be the default behavior until special UX requirements are needed (e.g., multitenancy). | - | packages/common/src/Evolu/Config.ts:70 |
name | readonly | string & Brand <"SimpleName" > | The name of Evolu instances. Evolu is multitenant - it can run more instances concurrently. Every Evolu instance has to have its own unique name. Database files are separated and invisible to each other. The default value is: Evolu . ### Example // name: getOrThrow(SimpleName.from("MyApp")) | - | packages/common/src/Evolu/Config.ts:20 |
reloadUrl | readonly | string | URL to reload browser tabs after reset or restore. The default value is / . | - | packages/common/src/Evolu/Config.ts:34 |
syncUrl | readonly | string | URL for Evolu sync and backup server. The default value is https://evolu.world . | - | packages/common/src/Evolu/Config.ts:27 |