Skip to content
Sign upLog in
← Back to Community

Java code to connect to the repl.it database for a repo

Profile icon
replax

Do anyone know of an example repl that shows, preferably in java, how to connect, create tables, store data, and retrieve data, in the included default database that comes with every repl :)

Thanks for helping, new here and couldn't find examples...

Voters
Profile icon
replax
Comments
hotnewtop
Profile icon
ironblockhd

I don't know java, but you know how to make get/post/delete requests you should be able to do it. Here's the docs: https://docs.repl.it/misc/db and here's a database for nodeJS as an example: https://github.com/replit/database-node/blob/master/index.js

Profile icon
replax

@ironblockhd
thanks, will try it out after work today :) I was hoping someone had made a wrapper so I wouldn't have to do request like that (looked like two languages had some wrapper/library allready, so was hoping someone made it for java or at least had some copy paste code I could reuse)

Profile icon
ironblockhd

Good luck!

Profile icon
replax

Also curious, is it alive between rounds/runs, also on free plan, so it could hold score of a game you may want to continue at a later time?