Skip to content

Commit

Permalink
Added test for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 6, 2024
1 parent 958d513 commit 07cfef0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/PhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public function testWorks()
$this->assertEquals(['[1,1,1]', '[1,1,2]', '[2,2,2]'], $embeddings);
$this->assertEquals([1, 1, 1], (new Vector($embeddings[0]))->toArray());

$rows = [$embedding1, $embedding2, $embedding3];
pg_copy_from($db, 'items (embedding)', $rows);

pg_close($db);
}

Expand Down

0 comments on commit 07cfef0

Please sign in to comment.