📝 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:
coderabbitai[bot] 2025-05-17 21:06:03 +00:00 committed by GitHub
parent 1bc532238c
commit b2df223679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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