API reference › @evolu/common › local‑first/Schema › IndexesConfig
type IndexesConfig = (
create: (indexName: string) => Kysely.CreateIndexBuilder,
) => ReadonlyArray<Kysely.CreateIndexBuilder<any>>;
Defined in: packages/common/src/local-first/Schema.ts:321
Defines SQLite indexes with Kysely's index builder.
Unique indexes are not supported because concurrent offline writes can
violate uniqueness during synchronization. Index names starting with evolu_
are reserved for Evolu.