API Reference / @evolu/common / Evolu/Internal / createIndex
Variable: createIndex()
const createIndex: (indexName) => CreateIndexBuilder;
Defined in: packages/common/src/Evolu/Kysely.ts:22
Create a new index.
Examples
await db.schema
.createIndex('person_full_name_unique_index')
.on('person')
.columns(['first_name', 'last_name'])
.execute()
Parameters
Parameter | Type |
---|---|
indexName | string |
Returns
CreateIndexBuilder