206 results found for "{query"
clear
(ActiveRecord::Associations::CollectionProxy, >= v3.1.0 <= v7.1.3.4)
difference is that returns self, instead of an array with the deleted objects, so methods can be chained. See delete_all for more information. Note that because delete_all removes records by directly running an SQL query into the database, the updated_at column of the object is not changed.
ActiveRecord::StaleObjectError

Raised on attempt to save stale record. Record is stale when it’s being saved in another query after instantiation, for example, when two users edit the same wiki page and one starts editing and saves the page before the other. Read more about optimistic locking in ActiveRecord::Locking module documentation.
configure_connection
(ActiveRecord::ConnectionAdapters::AbstractAdapter, >= v7.1.3.2 <= v7.1.3.4)
Perform any necessary initialization upon the newly-established @ raw_connection – this is the place to modify the adapter’s connection settings, run queries to configure any application-global “session” variables, etc. Implementations may assume this method will only be called while holding @lock (or from #initialize).
cleanup_view_runtime
(ActionController::Instrumentation, >= v3.0.0 <= v7.1.3.4)
A hook which allows you to clean up any time, wrongly taken into account in views, like database querying time.
columns_for_distinct
(ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements, >= v4.2.1 <= v7.1.3.4)
PostgreSQL requires the ORDER BY columns in the select list for distinct queries, and requires that the ORDER BY include the distinct column.
filename
(ActiveStorage::Blob, >= v5.2.3 <= v7.1.3.4)
Returns an ActiveStorage::Filename instance of the filename that can be queried for basename, extension, and a sanitized version of the filename that’s safe to use in URLs.
ActiveRecord::ExplainRegistry

This is a thread locals registry for EXPLAIN. For example returns the collected queries local to the current thread.
ActiveRecord::AsynchronousQueryInsideTransactionError

AsynchronousQueryInsideTransactionError will be raised when attempting to perform an asynchronous query from inside a transaction
ActiveRecord::QueryMethods::WhereChain

WhereChain objects act as placeholder for queries in which where does not have any parameter. In this case, where can be chained to return a new relation.
id?
(ActiveRecord::AttributeMethods::PrimaryKey, >= v3.2.1 <= v7.1.3.4)
Queries the primary key column’s value. If the primary key is composite, all primary key column values must be queryable.
ignored_columns
(ActiveRecord::ModelSchema::ClassMethods, >= v5.1.7 <= v7.1.3.4)
The list of columns names the model should ignore. Ignored columns won’t have attribute accessors defined, and won’t be referenced in SQL queries.
scopes
(ActiveRecord::Reflection::AbstractReflection, >= v5.1.7 <= v7.1.3.4)
Returns a list of scopes that should be applied for this Reflection object when querying the database.
ActiveRecord::ConnectionFailed

ConnectionFailed will be raised when the network connection to the database fails while sending a query or waiting for its result.
compute_asset_path
(ActionView::Helpers::AssetUrlHelper, >= v4.0.2 <= v7.1.3.4)
Computes asset path to public directory. Plugins and extensions can override this method to point to custom assets or generate digested paths or query strings.
cache
(ActiveRecord::QueryCache::ClassMethods, >= v2.3.8 <= v7.1.3.4)
Enable the query cache within the block if Active Record is configured. If it’s not, it will execute the given block.
async_count_by_sql
(ActiveRecord::Querying, >= v7.1.3.2 <= v7.1.3.4)
Same as #count_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise .
async_find_by_sql
(ActiveRecord::Querying, >= v7.1.3.2 <= v7.1.3.4)
Same as #find_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise .
prepare_update_statement
(Arel::Visitors::MySQL, >= v6.0.0 <= v7.1.3.4)
In the simple case, MySQL allows us to place JOINs directly into the UPDATE query. However, this does not allow for LIMIT, OFFSET and ORDER. To support these, we must use a subquery.
async_minimum
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #minimum, but performs the query asynchronously and returns an ActiveRecord::Promise .
async_maximum
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #maximum, but performs the query asynchronously and returns an ActiveRecord::Promise .
async_average
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #average, but performs the query asynchronously and returns an ActiveRecord::Promise .
define_attribute_methods
(ActiveRecord::AttributeMethods::ClassMethods, >= v2.0.3 <= v7.1.3.4)
Generates all the attribute related methods for columns in the database accessors, mutators and query methods.
uncached
(ActiveRecord::QueryCache::ClassMethods, >= v2.3.8 <= v7.1.3.4)
Disable the query cache within the block if Active Record is configured. If it’s not, it will execute the given block.
async_pluck
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #pluck, but performs the query asynchronously and returns an ActiveRecord::Promise .
async_count
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #count, but performs the query asynchronously and returns an ActiveRecord::Promise .
async_pick
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #pick, but performs the query asynchronously and returns an ActiveRecord::Promise .
async_sum
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #sum, but performs the query asynchronously and returns an ActiveRecord::Promise .
async_ids
(ActiveRecord::Calculations, >= v7.1.3.2 <= v7.1.3.4)
Same as #ids, but performs the query asynchronously and returns an ActiveRecord::Promise .
clear_association_scope_cache
(ActiveRecord::Reflection::AssociationReflection, >= v5.0.0.1 <= v7.1.3.4)
This is for clearing cache on the reflection. Useful for tests that need to compare SQL queries on associations.
exec_explain
(ActiveRecord::Explain, >= v3.2.1 <= v7.1.3.4)
Makes the adapter execute EXPLAIN for the tuples of queries and bindings. Returns a formatted string ready to be logged.