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).ActiveRecord.Adapters.Pg class
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).ActiveRecord.Base class
Base class for ActiveRecord database-tied objects.
Records schema statements instead of running them, which is how a migration's
change is reverted.ActiveRecord.Database class
Entry point of the query builder.
ActiveRecord.Migration class
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.
ActiveRecord.Migrator class
Runs a list of migrations in one direction.
ActiveRecord.Model class
Registry of the model classes.
ActiveRecord.Query class
A single SQL query under construction.
ActiveRecord.Queue class
Holds the table definitions made with
ActiveRecord.define_model before ActiveRecord is ready.ActiveRecord.Schema class
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.ActiveRecord.Validator class
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.