Answer the question
In order to leave comments, you need to log in
How to access the database if it is occupied by another program?
I'm having trouble accessing the database from another program.
I have a multiprocessing application that uses a SQLite and SqlAlchemy database.
This is what the engine looks like:
engine = create_engine(f'sqlite:///{DATABASE_PATH}', poolclass=QueuePool)
Answer the question
In order to leave comments, you need to log in
Use subds that have competitive access - Mysql, Postgres, etc.
From crutches - write a third program, which will receive requests for input, and it will return a response. Passing requests by some queue or via http or sockets.
But if you cannot raise a normal subd, you are unlikely to raise the same rabbitmq
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question