Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
7

Host SQL database on repl.it

CodeLongAndPros
CodeLongAndPros

How would I host a SQL database on a SQLite repl, and access it from JS on another repl?

3 years ago
You are viewing a single comment. View All
2
Gellehaiak
Gellehaiak

Sorry to bring this up; Yes, you can. In every class, you need to call the database to create its DatabaseHelper DB = new DatabaseHelper(this); and then DB. Open (); and after that, DB.yourMethodQuery to call the method you have in your DatabaseHelper.
It's best to have a global DatabaseHelper variable DB and call it at creation to create an instance of DB = new DatabaseHelper(this), and then you can call DB.something anywhere in the class. If that doesn't work, then ask the
https://www.devart.com/dbforge/postgresql/studio/ for help.

1 year ago