MCPcopy Create free account
hub / github.com/subquery/subql / dropTsVectorIndexQuery

Function dropTsVectorIndexQuery

packages/node-core/src/db/sync-helper.ts:735–736  ·  view source on GitHub ↗
(schema: string, table: string)

Source from the content-addressed store, hash-verified

733
734const tsVectorIndexName = (schema: string, table: string) => hashName(schema, 'fulltext_idx', table);
735export const dropTsVectorIndexQuery = (schema: string, table: string): string =>
736 dropIndexQuery(schema, tsVectorIndexName(schema, table));
737
738export const createTsVectorIndexQuery = (schema: string, table: string): string =>
739 createIndexQuery({using: 'gist', fields: [TS_VECTOR_COL], name: tsVectorIndexName(schema, table)}, table, schema);

Callers

nothing calls this directly

Calls 2

dropIndexQueryFunction · 0.85
tsVectorIndexNameFunction · 0.85

Tested by

no test coverage detected