def create record, resources
      result = [resources].flatten.map do |resource|
        resource = record.new(resource) unless resource.kind_of?(record)
        result   = execute(command_create(record), *resource.tuple.values_at(*record.header.insertable))
        resource.tuple[record.header.serial] = result.insert_id if record.header.serial
        resource
      end
      resources.kind_of?(Array) ? result : result.first
    end
def create record, resources
      result = [resources].flatten.map do |resource|
        resource = record.new(resource) unless resource.kind_of?(record)
        result   = execute(command_create(record), *resource.tuple.values_at(*record.header.insertable))
        resource.tuple[record.header.serial] = result.insert_id if record.header.serial
        resource
      end
      resources.kind_of?(Array) ? result : result.first
    end
Create one or more.

 @example Record.
   user = User.new(name: 'Apply Arthurton', age: 32)
   Swift.db.create(User, user)
   #=> Swift::Record
 @example Coerce hash to record.
   Swif.db.create(User, name: 'Apple Arthurton', age: 32)
   #=> Swift::Record
 @example Multiple resources.
   apple = User.new(name: 'Apple Arthurton', age: 32)
   benny = User.new(name: 'Benny Arthurton', age: 30)
   Swift.db.create(User, [apple, benny])
   #=> Array<Swift::Record>
 @example Coerce multiple resources.
   Swift.db.create(User, [{name: 'Apple Arthurton', age: 32}, {name: 'Benny Arthurton', age: 30}])
   #=> Array<Swift::Record>

 @param  [Swift::Record]                                   record    Concrete record subclass to load.
 @param  [Swift::Record, Hash, Array<Swift::Record, Hash>] resources The resources to be saved.
 @return [Swift::Record, Array<Swift::Record>]
 @note   Hashes will be coerced into a Swift::Record resource via Swift::Record#new
 @note   Passing a scalar will result in a scalar.
 @see    Swift::Record.create