Replit databse across files

hey there, I’m interested in having my database across multiple files but if I try to make new db, I would need to create new instance of it e.g const db = new Database() , shouldn’t this mean that I will be having 2 databases that are not connected?

No, your original DB from the first file should be connected to the one in your second file, so you’ll still have all of the data from the first file. I only tried this in Python; I’m not sure if it would work in other languages that have the replit db package.

The package works roughly the same across all languages since its just performing requests to a URL obtained via an environment variable.