Search code examples
postgresqlsqlite

Attempting to convert SQLite .db to PostgreSQL throws encoding error


I'm trying to convert my SQLite database (.db file which has been used with python's aiosqlite library) to a PostgreSQL database i have set up, however im encountering this error when attempting to do so. error message in vscode

What could be causing this error? Is there a better way to go about this?


Solution

  • The real answer to this question is: Export your .db via a browser of sorts (for example, in my case, SQLite browser) to .sql and the command will run correctly (of course after making your exported sql statements compatible with postgresql)