P
P
Politochka2021-08-06 13:13:40
PostgreSQL
Politochka, 2021-08-06 13:13:40

Heroku, SQL and aiogram?

I have a non-commercial telegram bot, it used to be on free pythonanywhere and was written on telebot later I rewrote it to aiogram and uploaded it to heroku because pythonanywhere doesn't want to run aiogram.
I also had a database with users in a .db file for mailing, I recently noticed that heroku somehow stores my database in a strange way, once a day everything is reset to the amount that was originally as I uploaded it, temporarily stores it, as if I didn’t did base.commit()
Googling found heroku postgresql, registered but didn't find any documentation on how to connect
How to make the current sqlite database work in heroku? Or switch to another server?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question