Repl.it Database feedback š¾
Hey replers! Weāre beginning to roll out Repl.it Database. Weād love to get your feedback on it so that we can continue making it better.
What is Database?
Database is an easy-to-use key-value store. You can store data in it and retrieve data from it, even after your repl restarts. It's great for building website or game backends, Discord bots, or any other type of app that needs to store some information.
Check out the repl in this post to see how easy it is to use. You can also take a look at the documentation here: https://docs.repl.it/misc/database
How do I use it?
If Database has been rolled out to you, you can look at some examples by opening up a repl and clicking on the Database icon toward the bottom of the sidebar. Database just works inside your repls, without any configuration.
What languages does it support?
Weāre providing official clients for Python, Node.js, and Go. But Database is simple enough that you can use it from an HTTP client in any language.
We want to hear from you!
If thereās anything youād like to see us change or add to Database, please leave a comment below. Thank you for your help!
If you don't have Database in your repls yet, please check back soon! We're rolling it out as you read this.
Please add the option to view your data base. It's really annoying.
If you tried to access your database via its URL, it'll just return a blank webpage. Use an unofficial database viewer like https://replit.com/@rbinfinity/Replit-Database-Admin-Console. @Sept1c
Nice an simple! I'm going to keep using MongoDB for certain applications, as I definitely like the structure. This is nice though!
I like this! However, when I click on the link that it provides so that I can see all of the keys, it takes me to a blank page with no content.
@aGEEKdude damn they still didnt fix this
the main idea is great but it has only a few features.
also from yesterday, I'm getting a key error whenever I try to access a certain value that exists in db.keys
() list .
i finely tried it and it is very cool!
but the only suggestion is to add the ability to view/edit the data base from a certain page
something like mongoDB atlas were you can delete document edit them anytime wich could be very helpful while developing!
:)
I really like the Repl DB. My only issue is key size limits.
Also, please add the ability to view the Database!
@HarperframeInc We're open to increasing the limits! We set them conservatively to start with. What would you like to see?
Let the owner view all the keys in the database, maybe search for keys?
@HarperframeInc you could potentially get around this by spinning up a few more repls and shard your data.
@triptych No- doing this is insecure, and but sharding- possibly.
How should I go about doing a more advanced keys retrieve for my discord economy bot...
somthing like
if key does not exist:
do something
@bigboyyyyyyyy69 like this:
if key not in db.keys(): # do something here
@ruiwenge2 thanks :D I've gotten slightly better with using the db
I can never get this to work properly in node js. Extremely buggy. Which is sad.
Bricked my repository twice because you can't delete keys with certain special characters in them (At least ? and /)
Can you add export / import ?
the db keeps resetting on its own and i lost everything i saved. why does it keep happening? there isn't even a way to just view and backup my data so it's horrible when it happens every couple of weeks or so
@rayne14 Have the same problemsš
I love it! Some questions / requests
- how do I keep the database from being wiped between runs?
For example: https://repl.it/@triptych/IroncladAshamedRobot#index.js - need a way to upload / download the database data - like say to/from a json file?
- when I download the repl to a zip, would be great to get a copy of the database too!
- do you have any examples of a simple node.js based app using this?
@triptych I have the same issue that the database sometimes being wiped. If you find a solution, please kindly share with me. Thanks
@triptych Here's a simple Node/Express app I built with the Repl db: https://repl.it/@JosephMaxwell/NodeJsToDoList
Definitely not the cleanest, but it does work and has a front-end and back-end. I haven't noticed my db getting wiped at all, but I've only been working with it for a few hours.
@JosephMaxwell Thank you for this! For some reason I though that when the Repl runs a second time that new database call ( const db = new database(); ) would clobber the old database but it seems to be smart enough to persist the database!
give money i use repl.it and u guys dont give money my school force everyone to use repl.it so u should give money to my school too thanks. if no give i will sue you!
@LoweLembrin
yos them ned to gib mony or i not get mony
Hello, i have used the replit database and think it's a great idea but I tried to store a item stopped the program and ran it again and my item was not there more time should be put into this to make it work.
Hi, I am coding in discord.py and am grabbing the discord servers id and storing it in the database in order to store config settings, however when I go to delete the key it brings up this error: TypeError: quote_from_bytes() expected bytes anyone got a fix for this?
@Topscientist discord servers id (and any discord id) are int, and the db keys should be str, try making a key using db[str(id)] = val.
@Brakko Ah Oki, Thanks
@Brakko Thanks helped me out was slightly confused
por que o repl.it demora de carregar tem vezes que nem carrega pra mim editar meu bot ;(
yay!
How do you get your client to be "official" or something, like IreTheKid and CodeMonkey got their python client on the repl.it docs.
Awesome! Isn't there another module for replitdb in python though?
@adl212 replit
@Duvangamer3845 Yeah, that's what I thought.
wow thanks!
c++ support pls
Please add an official client for Java, it would be very helpful. (And also other popular languages)
why some repl, file REPLIT_DB_URL is undefined ??? how i can resolve it ?
would be nice to have some form of security. like preventing deleting and such.
1LfV1tSt3KNyHpFJnAzrqsLFdeD2EvU1MK
First, please add a way to see all keys in the DB without needing to search for a specific prefix. Second, please add more languages - PHP would be great because it's a huge pain to work with currently. I can only seem to add/get/remove from the shell window and not in my code.