Guides Overview
Welcome to the CQL Guides section! Here you'll find practical, focused documentation to help you use CQL (Crystal Query Language) effectively in your Crystal projects.
What You'll Find
Our guides are organized to help you progress from basic concepts to advanced techniques:
Getting Started
Getting Started Guide - Build your first CQL application
Configuration - Set up CQL for all environments
Architecture Overview - Understand how CQL works
Active Record with CQL
Active Record Overview - Complete guide to the Active Record pattern
Defining Models - Create your first models
CRUD Operations - Create, read, update, delete
Querying & Scopes - Find what you need
Relationships - Connect your data
Validations - Ensure data quality
Callbacks - Hook into model lifecycle
Transactions - Maintain data consistency
Database Management
Migrations - Version control your database
Migration Best Practices - Follow proven patterns
Migration Guide - Transition from other ORMs
Schema Dump - Export and import schemas
Advanced Topics
Performance Optimization - Make your queries fast
Performance Monitoring - Query analysis and N+1 detection
Security Guide - Secure database operations
Testing Strategies - Test your database code
Best Practices & Comparison
Best Practices - Follow proven patterns
Feature Comparison - See how CQL compares to other ORMs
Community - Connect with other developers
Learning Paths
New to CQL?
Getting Started - Build your first app
Active Record Overview - Learn the most popular pattern
Defining Models - Create your models
CRUD Operations - Basic database operations
Relationships - Connect your data
Validations - Ensure data quality
Coming from Another ORM?
Feature Comparison - See how CQL compares
Migration Guide - Transition smoothly
Architecture Overview - Understand the design
Best Practices - Follow proven patterns
Ready for Production?
Configuration - Optimize for your environment
Performance Optimization - Make it fast
Security Guide - Keep it secure
Testing Strategies - Ensure reliability
How to Use These Guides
Start with the basics - If you're new to CQL, begin with Getting Started
Follow the learning paths - Use the paths above to guide your learning
Use the sidebar - Navigate between related topics easily
Check examples - See Examples for working code samples
Get help - Visit Troubleshooting or Community if you get stuck
What Makes These Guides Special
Each guide is designed to be:
Self-contained - Complete examples and explanations
Practical - Real-world scenarios and code samples
Progressive - Build on previous knowledge
Tested - All examples work with the latest CQL version
Crystal-focused - Tailored for Crystal developers
Whether you're building your first Crystal app with CQL or looking to master advanced features, these guides are your go-to resource for effective CQL development.
Don't try to read everything at once! Pick a learning path that matches your experience level and goals, then work through it systematically.
If you get stuck, check the Troubleshooting Guide or ask the Community for help.
Last updated
Was this helpful?