AWS::Record is an ORM built on top of AWS services.
Base | = | Model | for backwards compatability with the old AWS::Record::Base |
A utility method for casting values into an array.
@param [Object] value @return [Array] The value cast into an array @api private
A utility method for casting values into
@param [Object] value @return [Set] The value cast into a Set. @api private
Sets a prefix to be applied to all SimpleDB domains associated with AWS::Record::Base classes.
AWS::Record.domain_prefix = 'production_' class Product < AWS::Record::Base set_shard_name 'products' end p = Product.new p.shard #=> 'products' p.save # the product is persisted to the 'production-products' domain
@param [String] prefix A prefix to append to all domains. This is useful
for grouping domains used by one application with a single prefix.
Sets a prefix to be applied to all DynamoDB tables associated with {AWS::Record::HashModel} and {AWS::Record::ListModel} classes.
AWS::Record.table_prefix = 'production_' class Product < AWS::Record::HashModel set_shard_name 'products' end p = Product.new p.shard #=> 'products' p.save # the product is persisted to the 'production-products' table
@param [String] prefix A prefix to append to all tables. This is
useful for grouping tables used by one application with a single prefix.