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
1

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

replax
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...

2 years ago

Voters

Comments

TopNew
3
ironblockhd
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

2 years ago
3
replax
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)

2 years ago
1
replax
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?

2 years ago
Load more