Active Record v1.0

Active Record pattern ORM.

Modules

Hooks hooks
Globals globals
ActiveRecord library
ActiveRecord is Flux's object-relational mapper.
Base class of the database adapters.
Adapter for MySQL servers, built on the MySQLOO binary module (gmsv_mysqloo).
Adapter for PostgreSQL servers, built on the pg binary module (gmsv_pg).
Adapter for the SQLite database built into Garry's Mod (the sql library).
Base class for ActiveRecord database-tied objects.
Records schema statements instead of running them, which is how a migration's change is reverted.
Entry point of the query builder.
A migration: one versioned step in the history of the database schema.
Finds the migration files and decides which of them to run.
Generates migration files for the flux generate migration <Name> [column:type ...] console command.
A stand-in for a migration file that has not been loaded yet.
Runs a list of migrations in one direction.
Registry of the model classes.
A single SQL query under construction.
Holds the table definitions made with ActiveRecord.define_model before ActiveRecord is ready.
The schema definition that the schema file is written in.
Keeps track of the migrations that have been run.
The table object that change_table hands to its callback while statements are being recorded.
Validations of model objects.
inverters object
The inverters of the reversible schema statements, which ActiveRecord::CommandRecorder#inverse_of looks up by the name of the statement.
Statements library
The schema statements (create_table, add_column, add_index and so on) that the migrations DSL exposes as global functions.
Tasks library
The database tasks behind the flux db:* console commands: migrating, rolling back, inspecting the migration status and dumping or loading the schema file.