Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.SchemaModule#createIndex

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
method kysely.SchemaModule.prototype.createIndex
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { SchemaModule } = kysely;

Create a new index.

Examples

await db.schema
  .createIndex('person_full_name_unique_index')
  .on('person')
  .columns(['first_name', 'last_name'])
  .execute()

Parameters

indexName: string