File tree Expand file tree Collapse file tree
routes/(console)/project-[region]-[project]/databases/database-[database]/(entity)/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export async function generateFields(
7777 }
7878
7979 case 'documentsdb' : /* doesn't need any fields */
80- case 'vectordb ' : /* vector embeddings + metadata defined at collection creation */ {
80+ case 'vectorsdb ' : /* vector embeddings + metadata defined at collection creation */ {
8181 /* no individual field creation needed */
8282 return [ ] ;
8383 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export function useDatabaseSdk(
6666 const { total, tables } = await baseSdk . tablesDB . listTables ( params ) ;
6767 return { total, entities : tables . map ( toSupportiveEntity ) } ;
6868 }
69- case 'vectordb ' :
69+ case 'vectorsdb ' :
7070 case 'documentsdb' :
7171 throw new Error ( `Database type not supported yet` ) ;
7272 default :
@@ -85,7 +85,7 @@ export function useDatabaseSdk(
8585 return toSupportiveEntity ( table ) ;
8686 }
8787 case 'documentsdb' :
88- case 'vectordb ' :
88+ case 'vectorsdb ' :
8989 throw new Error ( `Database type not supported yet` ) ;
9090 default :
9191 throw new Error ( `Unknown database type` ) ;
@@ -98,7 +98,7 @@ export function useDatabaseSdk(
9898 case 'tablesdb' :
9999 return await baseSdk . tablesDB . delete ( params ) ;
100100 case 'documentsdb' :
101- case 'vectordb ' :
101+ case 'vectorsdb ' :
102102 throw new Error ( `Database type not supported yet` ) ;
103103 default :
104104 throw new Error ( `Unknown database type` ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { AppwriteException, type Models } from '@appwrite.io/console';
55import type { Attributes , Columns , Table } from '$database/table-[table]/store' ;
66import type { Term , TerminologyResult , TerminologyShape } from '$database/(entity)/helpers/types' ;
77
8- export type DatabaseType = 'legacy' | 'tablesdb' | 'documentsdb' | 'vectordb' ;
8+ export type DatabaseType = Models . Database [ 'type' ] ;
99
1010export type Entity = Partial < Models . Collection | Table > & {
1111 indexes ?: Index [ ] ;
@@ -45,7 +45,7 @@ export const baseTerminology = {
4545 field : 'attribute' ,
4646 record : 'document'
4747 } ,
48- vectordb : { }
48+ vectorsdb : { }
4949} as const ;
5050
5151const createTerm = ( singular : string , pluralForm : string ) : Term => {
You can’t perform that action at this time.
0 commit comments