Skip to main content

CrystalDocs builds documentation for every shard, on request. The announcement: Documentation for every shard, on CrystalBits.

CrystalDocs

    Browse DocsCrystalShardsAbout

    github.com/HarbinsonAdam/luna.cr

    Types

    • Luna
      • Associations
      • BaseMigration
      • BaseModel
      • Context
      • Exec
      • IncludePaths
      • InvalidStateTransition
      • Logging
      • MigrationRunner
      • Migrations
        • ChangeTable
        • TableDefinition
        • TypeSql
      • ModelAlreadyFetchedException
      • QueryBuilder
        • Delete
        • Insert
        • JoinClause
        • Select
        • Update
      • RecordNotFound
      • RecordNotSavedError
      • RecordNotValidError
      • Relation
      • Rollback
      • SQL
        • Dialect
      • Setup
      • StateMachine
      • Sti
    • UUID
    module

    Luna

    Class methods

    transaction(connection_name : Symbol = :default, &)

    Global transaction helper, similar to ActiveRecord::Base.transaction. Raises rollback of current tx when Luna::Rollback is raised and swallows it.

    Source

    Nested types

    • Luna::Associations
    • Luna::BaseMigration
    • Luna::BaseModel
    • Luna::Context
    • Luna::Exec
    • Luna::IncludePaths
    • Luna::InvalidStateTransition
    • Luna::Logging
    • Luna::MigrationRunner
    • Luna::Migrations
    • Luna::ModelAlreadyFetchedException
    • Luna::QueryBuilder
    • Luna::RecordNotFound
    • Luna::RecordNotSavedError
    • Luna::RecordNotValidError
    • Luna::Relation(T)
    • Luna::Rollback
    • Luna::SQL
    • Luna::Setup
    • Luna::StateMachine
    • Luna::Sti

    Advertisement

    Crystal jobs from CrystalGigs

    • Your posting here

      Reach Crystal developers on CrystalGigsFirst party

    CrystalDocs.org - Crystal Shard Documentation Hosting

    The CrystalBits newsletter

    Crystal tutorials, release news and community writing. One email when there is something new, never a stream.

    You will get one confirmation email to check the address is yours. Unsubscribe any time.

    GitHubCrystalShardsCrystalGigsCrystalBitsCrystal LanguageStatsSponsor

    The Bushido Collective builds and maintains this site.
    Licensed under the Apache License 2.0