Ask coding questions

← Back to all posts
SQLite3 DB is reverting
isige (1)

I have a server bump Discord Bot, and I need to store every server's data and prefix. My problem is that the database reverts itself every couple days, and this only happens for certain servers.

Voters
isige (1)
Comments
hotnewtop
isige (1)

Thanks all, I saw somewhere else that I could use TinyDB and some others, and that it's just SQLite3 that doesn't play nice. TinyDB seems to work.

Coder100 (18185)

Yes, because it is a file-based storage, and that file will revert if it was made programmatically and you are not on the repl.

Baconman321 (1097)

@Coder100 Seriously though, that needs to be changed :(

Coder100 (18185)

Well I'm not complaining, it doesn't affect me! @Baconman321

Baconman321 (1097)

@Coder100 Until replit DB gets some serious upgrades, like the quick access for the DB (like the secrets section), and a bit more storage, I'm just going to wait a bit.

Coder100 (18185)

What about my json store :(( @Baconman321

Baconman321 (1097)

@Coder100 Again, too limited.

I'll just wait for replit to expand limits and make it easier to work with.

VulcanWM (2766)

Try using a database like mongodb