You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlanetScale also supports this syntax, but there's no way of defining it with Drizzle.
import{datetime,index,mediumtext,mysqlTable,varchar}from'drizzle-orm/mysql-core';constmyTable=mysqlTable('my_table',{// a custom type implementing the VECTOR column typeembedding: vector('embedding',{length: 1024}),},(table)=>({embeddingIdx: vectorIndex('embedding_idx').on(table.embedding),});
Equivalent SQL:
CREATE VECTOR INDEX embedding_idx ON my_table(embedding);
It's currently not possible even if trying to use raw SQL to define the index, so it's a bit of a blocker.
The text was updated successfully, but these errors were encountered:
Feature hasn't been suggested before.
Describe the enhancement you want to request
MySQL 9.0 is shipping with the VECTOR column type. Some MySQL providers have already start giving early access too. Additionally, Oracle has documented a VECTOR INDEX in the new version: https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/create-vector-index.html
PlanetScale also supports this syntax, but there's no way of defining it with Drizzle.
Equivalent SQL:
CREATE VECTOR INDEX embedding_idx ON my_table(embedding);
It's currently not possible even if trying to use raw SQL to define the index, so it's a bit of a blocker.
The text was updated successfully, but these errors were encountered: