mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
📝 Add docstrings to feat/postgres/support-vector
Docstrings generation was requested by @naorpeled. * https://github.com/typeorm/typeorm/pull/11437#issuecomment-2888582935 The following files were modified: * `test/functional/columns/vector/vector-similarity.ts`
This commit is contained in:
parent
1bc532238c
commit
b2df223679
@ -22,6 +22,13 @@ describe("columns > vector type > similarity operations", () => {
|
||||
beforeEach(() => reloadTestingDatabases(connections))
|
||||
after(() => closeTestingConnections(connections))
|
||||
|
||||
/**
|
||||
* Inserts five test posts with predefined 3-dimensional vector embeddings into the database.
|
||||
*
|
||||
* Clears existing `Post` records and saves new posts with specific embeddings for use in similarity tests.
|
||||
*
|
||||
* @returns The array of saved `Post` entities with their assigned embeddings.
|
||||
*/
|
||||
async function setupTestData(connection: DataSource) {
|
||||
const postRepository = connection.getRepository(Post)
|
||||
await postRepository.clear() // Clear existing data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user