Skip to content

Commit 288c7b1

Browse files
committed
contribution file
1 parent 1718802 commit 288c7b1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CONTRIBUTING.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Contributing to SQL Examples
2+
3+
Thank you for your interest in contributing to the SQL Examples repository! We appreciate your support in making this collection of SQL queries even better. Here are some guidelines to help you get started with contributing to SQL Examples:
4+
5+
1. Familiarize Yourself with the Project:
6+
- Take some time to explore the SQL Examples repository. You can clone or download it to your local machine.
7+
- Read the existing SQL files in the `data/` directory to understand the types of queries and the structure of the examples.
8+
9+
2. Choose an Area to Contribute:
10+
- Identify an area where you'd like to contribute, such as adding new SQL query examples, improving existing examples, or organizing the queries into categories.
11+
- If you have any new ideas or query patterns that are not yet covered, feel free to propose them as well.
12+
13+
3. Create or Update SQL Files:
14+
- Create a new SQL file in the `data/` directory for your new query example. Alternatively, choose an existing SQL file to update.
15+
- You can also use the `database.py` file in the `lib` directory to write out new SQL queries you send FeatureBase Cloud.
16+
- Make sure the SQL query is well-formatted, readable, and represents a specific query pattern or scenario.
17+
- If you're updating an existing SQL file, ensure that the changes align with the purpose and intent of the example.
18+
19+
4. Check for Proper Semicolon Usage:
20+
- Each line in the SQL files should end with a semicolon (;) unless it is a comment line starting with "--" or a blank line.
21+
- To ensure consistency, review the end of each line (excluding comment lines and blank lines) and add a semicolon if it is missing.
22+
23+
5. Test the SQL Files:
24+
- Ensure that the SQL files are syntactically correct and can be executed without errors.
25+
- You can use [FeatureBase Cloud](https://cloud.featurebase.com/) to execute the queries and verify their functionality.
26+
27+
6. Submitting Your Contribution:
28+
- Fork the SQL Examples repository to your GitHub account.
29+
- Create a new branch with a descriptive name for your contribution.
30+
- Commit your changes to the branch, providing clear and concise commit messages.
31+
- Push the branch to your forked repository and submit a pull request to the main SQL Examples repository.
32+
- In the pull request description, explain the changes you made and their significance.
33+
34+
7. Review and Collaboration:
35+
- Your contribution will be reviewed by the project maintainers.
36+
- Be responsive to any feedback or suggestions provided by the maintainers or other contributors.
37+
- Collaborate with the maintainers to address any requested changes or improvements to your contribution.
38+
39+
8. Licensing:
40+
- By contributing to the SQL Examples repository, you agree that your contributions will be licensed under the same license as the repository. The license details can be found in the repository's LICENSE file.
41+
42+
Thank you for considering contributing to SQL Examples! Your contributions are valuable in creating a comprehensive resource for SQL query examples.

0 commit comments

Comments
 (0)