pgvector / pgvector-node

pgvector support for Node.js, Deno, and Bun (and TypeScript)
MIT License
291 stars 9 forks source link

TypeError: exports.knex.schema.enableExtension is not a function #16

Closed seyfer closed 5 months ago

seyfer commented 5 months ago

Hey,

there is a mistake in docs for usage with Knex.js and if I go to the schema: Knex.SchemaBuilder; type, there is no such method.

ankane commented 5 months ago

Hi @seyfer, importing the library adds that method (first step in the docs).

import pgvector from 'pgvector/knex';
seyfer commented 5 months ago

@ankane ah ok, this is because I use Typescript. then I will have to do @ts-ignore