-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f07355f
commit 2cacc92
Showing
6 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: Cql | ||
icon: database | ||
--- | ||
|
||
# Cql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
--- | ||
icon: lightbulb | ||
--- | ||
|
||
# Core Concepts | ||
|
||
CQL’s core concepts revolve around providing developers with tools to efficiently interact with databases through well-structured APIs. These concepts are fundamental to building and manipulating data models, performing queries, and managing transactions. Here's a high-level overview: | ||
|
||
- **Schemas:** Define the structure of the database, including tables, columns, and data types. | ||
- **CRUD Operations:** Simplify creating, reading, updating, and deleting records in the database. | ||
- **Query Builder:** Enables constructing SQL queries using Crystal code with features like joins and subqueries. | ||
- **Transactions:** Ensure safe and atomic execution of multiple database operations. | ||
* **Schemas:** Define the structure of the database, including tables, columns, and data types. | ||
* **CRUD Operations:** Simplify creating, reading, updating, and deleting records in the database. | ||
* **Query Builder:** Enables constructing SQL queries using Crystal code with features like joins and subqueries. | ||
* **Transactions:** Ensure safe and atomic execution of multiple database operations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
--- | ||
icon: webhook | ||
--- | ||
|
||
# Cql API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
icon: book | ||
--- | ||
|
||
# Guides | ||
|
||
The CQL (Crystal Query Language) Toolkit simplifies the management and execution of SQL queries in Crystal. It supports CRUD operations, complex query building, and uses patterns like Active Record and Repository for efficient data management. CQL is compatible with multiple databases, including PostgreSQL. Features include schema definition, query execution, data insertion, updating, and deletion. It also provides support for associations like has\_many, belongs\_to, and many\_to\_many. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
icon: gear | ||
--- | ||
|
||
# Installation | ||
|
||
To get started with CQL in your Crystal project, follow these steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
icon: arrow-right-to-arc | ||
--- | ||
|
||
# Introduction | ||
|
||
## Purpose of CQL | ||
|