domainsoli.blogg.se

Psequel cannot edit tables without primary key
Psequel cannot edit tables without primary key





psequel cannot edit tables without primary key

Whether to raise an error instead of returning nil on a failure to save/create/save_changes/update/destroy due to a validation failure or a before_* hook returning false (default: true). If not determined automatically, the default is :id. Sequel can determine this automatically for many databases, but not all, so you may need to set it manually. For internal use only.Īrray of plugin modules loaded by this class Sequel :: Model. Generally a naked version of the model’s dataset limited to one row. The dataset that instance datasets (this) are based on.

psequel cannot edit tables without primary key

SQL string fragment used for faster lookups by primary key, or nil if the optimization should not be used.

psequel cannot edit tables without primary key

SQL string fragment used for faster DELETE statement creation when deleting/destroying model instances, or nil if the optimization should not be used. These are merged with the options given to set_fields. The default options to use for Model#set_fields. The Module subclass to use for dataset_module blocks. Stored so that if the model’s dataset is changed, it will be extended with all of these modules. This is required for reloading them correctly (avoiding the superclass mismatch).Īrray of modules that extend this model’s dataset. Whether to cache the anonymous models created by Sequel::Model(), true by default. Class methods for Sequel::Model that implement basic model functionality.Īll of the following methods have class methods created that send the method to the model’s dataset: all, as_hash, avg, count, cross_join, distinct, each, each_server, empty?, except, exclude, exclude_having, fetch_rows, filter, first, first!, for_update, from, from_self, full_join, full_outer_join, get, graph, grep, group, group_and_count, group_append, group_by, having, import, inner_join, insert, intersect, invert, join, join_table, last, left_join, left_outer_join, limit, lock_style, map, max, min, multi_insert, naked, natural_full_join, natural_join, natural_left_join, natural_right_join, offset, order, order_append, order_by, order_more, order_prepend, paged_each, qualify, reverse, reverse_order, right_join, right_outer_join, select, select_all, select_append, select_group, select_hash, select_hash_groups, select_map, select_more, select_order_map, server, single_record, single_record!, single_value, single_value!, sum, to_hash, to_hash_groups, truncate, unfiltered, ungraphed, ungrouped, union, unlimited, unordered, where, where_all, where_each, where_single_value, with, with_recursive, with_sql







Psequel cannot edit tables without primary key