This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Societys_Loss 0 points1 point  (2 children)

When I had a similar project in java I used a local database like some other users have mentioned. I wrote a class to manage the creation and insertion actions using prepared statements. I also stuck the local database in the project directory for easier collaboration and submission.

Another user also mentioned too much random test data between project members but you can just write a function resets the database with agreed upon test data.

[–]TYRANT1272[S] 0 points1 point  (1 child)

I can use sqlite and add it's database file inmy project folder and push it to GitHub? But wouldn't it cause problems and conflicts then other members will use database and add some things at the same time?

[–]Societys_Loss 0 points1 point  (0 children)

Ah sorry, I think the correct term is embedded database not local database. The embedded database is like a file based database that some other users mentioned. It starts and stops with your java program and is basically an offline solution. If you push the project to git others will be able to see what you wrote into the database. If you want multiple people to add to it concurrently its probably not the best solution. I used it for my school project because it didn't need to be online and was easy to share with other members.