Skip to content

Commit

Permalink
Forgot to add dump/restore commands to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aozalevsky committed Nov 11, 2023
1 parent bc2f629 commit 9b4db32
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@ Latern creates the following two tables in the database:

## Usage

VectorDatabase file, which has class Latern, provides the main functionality for the vector database. For example, you can insert an embedding with the insertEmbedding().
VectorDatabase file, which has class Latern, provides the main functionality for the vector database. For example, you can insert an embedding with the insertEmbedding().

## Dumping/restoring the database

To dump the database for the backup/transfer one can use built-in Postgres command [`pg_dump`](https://www.postgresql.org/docs/current/backup-dump.html):

`sudo -u postgres pg_dump structdb > structdb.sql`

to restore the database from dump:

`sudo -u postgres psql structdb < structdb.sql`

0 comments on commit 9b4db32

Please sign in to comment.