CQL
AzuAuthorityGithub
  • README
  • Introduction
  • Installation
  • Core Concepts
    • Schema Definition
    • Initializing Schema
    • Altering Schema
    • Migrations
    • CRUD Operations
      • Creating Records
      • Reading Records
      • Updating Records
      • Deleting Records
    • Patterns
      • Active Record
      • Entity Framework
      • Repository
  • Guides
    • Getting Started
    • Active Record with CQL
      • Defining Models
      • CRUD Operations
      • Querying
      • Complex Queries
      • Persistence Details
      • Validations
      • Callbacks
      • Transactions
      • Optimistic Locking
      • Relations
        • Belongs To
        • Has One
        • Has Many
        • Many To Many
      • Database Migrations
      • Scopes
      • Pagination
    • Transaction Management
    • Handling Migrations
  • Troubleshooting
  • FAQs
Powered by GitBook
On this page
  • Issue: NoMethodError when querying
  • Solution:
  • Issue: Transaction not rolling back
  • Solution:

Was this helpful?

Export as PDF

Troubleshooting

Here are some common issues you might encounter while using CQL and how to resolve them.

Issue: NoMethodError when querying

Solution:

Ensure that your table and columns are correctly defined in the schema. For example:

table :users do
  primary :id, Int64
  column :name, String
end

If you're querying a column that doesn't exist, CQL will raise a NoMethodError.

Issue: Transaction not rolling back

Solution:

Ensure that any errors raised inside the transaction block are properly handled. If an error occurs, the transaction will be rolled back automatically.

PreviousHandling MigrationsNextFAQs

Last updated 2 days ago

Was this helpful?