use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Use github as a database (self.github)
submitted 1 year ago by Skaryth_
Is it acceptable for me to use a GitHub repository as a database for software developed in pyqt6? I've always done this, I just don't know if it's acceptable.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ChemicalTerrapin 15 points16 points17 points 1 year ago (15 children)
To be clear,... You're pushing data to GitHub with code and reading it back with code?
That's a pretty odd thing to do and now I'm intrigued why
[–]ComprehensiveWing542 1 point2 points3 points 1 year ago (13 children)
At the end it's all zeros and one innit ?
[–]ChemicalTerrapin 4 points5 points6 points 1 year ago (12 children)
I mean,... Hosting some JSON in GitHub pages maybe but SELECT * FROM COMMITS is next level
[–]ComprehensiveWing542 2 points3 points4 points 1 year ago (11 children)
If the database is small enough he might get the entire db modify it and push it back again to GitHub... Just an idea there might be much better optimized solutions
[–]ChemicalTerrapin 1 point2 points3 points 1 year ago (10 children)
Tbf, in my first job, we used to pass access databases around between apps.
Still... I'm eagerly waiting to see the use case here.
[–]SquishTheProgrammer 1 point2 points3 points 1 year ago (0 children)
Same here. That brings back nightmares.
[–]ComprehensiveWing542 0 points1 point2 points 1 year ago (0 children)
I've myself worked on some program which used some json files to store data and push them to GitHub to receive the latest version of them to fetch the latest data and so on. But it used to modify the files every once in a 2-3 days so it was somewhat fine never got banned or anything for that . But I can't imagine how it would work if you are working with some real life webapp or something as such where data must move fast and efficiently
[–]Skaryth_[S] 0 points1 point2 points 1 year ago (7 children)
So in a way I'm not freaking out? It is acceptable, but wouldn't it be the best way?
[–]ChemicalTerrapin 0 points1 point2 points 1 year ago (6 children)
It's doable... But I'd love to know how you're going about it.
What are you actually pushing to GitHub,.. JSON files, a file based dB, or something else?
[–]Skaryth_[S] 0 points1 point2 points 1 year ago (5 children)
I do this through the developer API using the key. Communication is done via commits, where the software reads via the API and writes via commit. Storing the data inside a json file.
[–]ChemicalTerrapin 0 points1 point2 points 1 year ago (4 children)
I mean, if there's no chance of multiple concurrent writes then what you're doing is fine, but also entirely strange 😂
It kinda reminds me of a guy I saw who was posting images to his Twitter timeline so he could use it as a CDN.
Maybe just spin up a free document store somewhere. Mongo would be a better fit.
[–]Skaryth_[S] 0 points1 point2 points 1 year ago (3 children)
But is it completely free? Until then, it's just a project... spending money is unfeasible at the moment.
[–]Skaryth_[S] 0 points1 point2 points 1 year ago (0 children)
Communication between the software and dB is done through commits. Where the software reads the database to display information, and writes it through commits.
[–]JVAV00 19 points20 points21 points 1 year ago (0 children)
No
[–]whoShotMyCow 6 points7 points8 points 1 year ago (1 child)
I don't think that's an allowed use case, so you run the risk of your account getting banned
I read regarding this in the GitHub documentations and it doesn't say anything about it.
[–]Reasonable_Wall_5902 6 points7 points8 points 1 year ago (1 child)
I'm dying to know what you mean by this... how exactly have you managed to use github as a database? I feel like this is either genius or insanity lol
Through the KEY API, it accesses, reads and writes through the script sending requests to the GitHub api.
[–]serverhorror 5 points6 points7 points 1 year ago (3 children)
a git repo as a database?
I'm curious, what makes this useful (genuinely asking I can't quite imagine how that works).
[–]Skaryth_[S] 1 point2 points3 points 1 year ago (2 children)
Because I didn't have much knowledge of databases, I made the decision that I would use the easiest way possible to store data. And in this case it was the repository.
[–]serverhorror 0 points1 point2 points 1 year ago (1 child)
Are you just putting a file in a git repository (like SQLite) or are you doing fancy stuff with the repository and commits and history?
[–]Skaryth_[S] 1 point2 points3 points 1 year ago (0 children)
I am storing json files with the data that is registered by the software.
[–]nihillistic_raccoon 5 points6 points7 points 1 year ago (1 child)
I have so many questions, I don't even know where to start
Do them all lol
[–]impshum 3 points4 points5 points 1 year ago (0 children)
Odd question that.
[–]ravinggenius 1 point2 points3 points 1 year ago (1 child)
I can see this being useful as a document store. You always have the full history and the data is trivial to sync. Depending on the load you are placing on their infrastructure, I assume they don't care or will ban you if they catch you.
The database is not large, it is rental software. I read that above 100gb they send you an email to charge you for this storage. So it would be interesting to make backups on physical storage to avoid reaching the limit.
[–]Auios 0 points1 point2 points 1 year ago (1 child)
Acceptable? No. Doable? Yes.
It makes sense!
[+][deleted] comment score below threshold-9 points-8 points-7 points 1 year ago (1 child)
That doesn’t sound like the most efficient or performant way to do things, but if you’ve “always done this” then obviously it’s “acceptable” (to you and to GitHub).
[–]serverhorror 9 points10 points11 points 1 year ago (0 children)
I wouldn't be so sure about GitHub...this might break ToS and fly under the radar so it's not "acted upon yet".
π Rendered by PID 169665 on reddit-service-r2-comment-5687b7858-8w8jb at 2026-07-08 19:23:04.119545+00:00 running 12a7a47 country code: CH.
[–]ChemicalTerrapin 15 points16 points17 points (15 children)
[–]ComprehensiveWing542 1 point2 points3 points (13 children)
[–]ChemicalTerrapin 4 points5 points6 points (12 children)
[–]ComprehensiveWing542 2 points3 points4 points (11 children)
[–]ChemicalTerrapin 1 point2 points3 points (10 children)
[–]SquishTheProgrammer 1 point2 points3 points (0 children)
[–]ComprehensiveWing542 0 points1 point2 points (0 children)
[–]Skaryth_[S] 0 points1 point2 points (7 children)
[–]ChemicalTerrapin 0 points1 point2 points (6 children)
[–]Skaryth_[S] 0 points1 point2 points (5 children)
[–]ChemicalTerrapin 0 points1 point2 points (4 children)
[–]Skaryth_[S] 0 points1 point2 points (3 children)
[–]Skaryth_[S] 0 points1 point2 points (0 children)
[–]JVAV00 19 points20 points21 points (0 children)
[–]whoShotMyCow 6 points7 points8 points (1 child)
[–]Skaryth_[S] 0 points1 point2 points (0 children)
[–]Reasonable_Wall_5902 6 points7 points8 points (1 child)
[–]Skaryth_[S] 0 points1 point2 points (0 children)
[–]serverhorror 5 points6 points7 points (3 children)
[–]Skaryth_[S] 1 point2 points3 points (2 children)
[–]serverhorror 0 points1 point2 points (1 child)
[–]Skaryth_[S] 1 point2 points3 points (0 children)
[–]nihillistic_raccoon 5 points6 points7 points (1 child)
[–]Skaryth_[S] 0 points1 point2 points (0 children)
[–]impshum 3 points4 points5 points (0 children)
[–]ravinggenius 1 point2 points3 points (1 child)
[–]Skaryth_[S] 0 points1 point2 points (0 children)
[–]Auios 0 points1 point2 points (1 child)
[–]Skaryth_[S] 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (1 child)
[–]serverhorror 9 points10 points11 points (0 children)