UNPKG

graphile-search-plugin

Version:

Generate search conditions for your tsvector columns (PostGraphile v5)

35 lines (34 loc) 1.72 kB
"use strict"; /** * PostGraphile v5 Search Plugin * * Provides full-text search capabilities for tsvector columns. * * @example * ```typescript * import { PgSearchPlugin, PgSearchPreset } from 'graphile-search-plugin'; * * // Option 1: Use the preset (recommended) * const preset = { * extends: [ * PgSearchPreset({ * pgSearchPrefix: 'fullText', * }), * ], * }; * * // Option 2: Use the plugin directly * const plugin = PgSearchPlugin({ pgSearchPrefix: 'fullText' }); * ``` */ Object.defineProperty(exports, "__esModule", { value: true }); exports.createTsvectorCodecPlugin = exports.TsvectorCodecPreset = exports.TsvectorCodecPlugin = exports.PgSearchPreset = exports.createPgSearchPlugin = exports.PgSearchPlugin = void 0; var plugin_1 = require("./plugin"); Object.defineProperty(exports, "PgSearchPlugin", { enumerable: true, get: function () { return plugin_1.PgSearchPlugin; } }); Object.defineProperty(exports, "createPgSearchPlugin", { enumerable: true, get: function () { return plugin_1.createPgSearchPlugin; } }); var preset_1 = require("./preset"); Object.defineProperty(exports, "PgSearchPreset", { enumerable: true, get: function () { return preset_1.PgSearchPreset; } }); var tsvector_codec_1 = require("./tsvector-codec"); Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return tsvector_codec_1.TsvectorCodecPlugin; } }); Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return tsvector_codec_1.TsvectorCodecPreset; } }); Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return tsvector_codec_1.createTsvectorCodecPlugin; } });