What's the Deal, Bro?
Welcome to BroDB, the database that's got your back like a true bro! Written from scratch in Go (because real bros don't need no third-party libraries). Inspired by Barney from TV series HIMYM.
Features 😎
- B-tree Indexing: Our B-trees are so jacked, they make binary trees look like twigs.
- Table Rendering: Tables so pretty, you'll want to frame them and hang them in your man cave.
- Bro Query Language (BQL): SQL's cooler, more laid-back cousin. It's like talking to your bros, but for data!
- Bro-Friendly: If your database doesn't talk like your bros, is it even a real database?
Getting Started: Time to Crush It!
- Clone this repo
- Build it
- Run it (./brodb dbfile_name)
Bro Query Language: Speak Bro, Query Bro
Create a Table
BRO, LET'S BUILD THIS PLAYBOOK pickup_lines (id INT,the_line TEXT,success_rate INT);
Set the primary_key using:
BRO, LET'S BUILD THIS PLAYBOOK pickup_lines (id INT,the_line TEXT,success_rate INT) id PRIMARY_KEY;
Insert Data
BRO, SLAM THIS INTO pickup_line (id,the_line,success_rate) THIS CRAZY SHIT (7,"Sup, hottie?",89);
Select Data
BRO, SHOW ME ALL FROM pickup_lines;
Or get specific, bro:
BRO, SHOW ME (id , the_line) FROM pickup_lines WHERE id = 7 and the_line="Sup, hottie?";
Delete Data
BRO, DITCH THIS CRAP FROM pickup_lines where id =7;
EXIT
exit
Contributing: Become a Bro-veloper
- Fork it (like you fork your bicep curls)
- Create your feature branch (git checkout -b feature/AmazingBroFeature)
- Commit your changes (git commit -m 'Add some AmazingBroFeature')
- Push to the branch (git push origin feature/AmazingBroFeature)
- Open a Pull Request (and flex on them code reviewers)