C
C
che_aa2020-10-03 13:27:22
Python
che_aa, 2020-10-03 13:27:22

Postgesql and working with local db file?

I switched from sqlite to postgesql, in sqlite the connection is made to the local database file (database.db). How can I connect to a local database file using python and postgesql?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-10-03
@bacon

No way, there are no local files for connection in postgesql, it is a separate service/application.

K
ky0, 2020-10-03
@ky0

You can connect to a socket or a DBMS network port, forget about files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question