
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
DataMapper plugin providing support for aggregates, functions on collections and datasets.
It provides the following functions:
== count
Count results (given the conditions)
Friend.count # returns count of all friends Friend.count(:age.gt => 18) # returns count of all friends older then 18 Friend.count(:conditions => [ 'gender = ?', 'female' ]) # returns count of all your female friends Friend.count(:address) # returns count of all friends with an address (NULL values are not included) Friend.count(:address, :age.gt => 18) # returns count of all friends with an address that are older then 18 Friend.count(:address, :conditions => [ 'gender = ?', 'female' ]) # returns count of all your female friends with an address
== min
Get the lowest value of a property
Friend.min(:age) # returns the age of the youngest friend Friend.min(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the age of the youngest female friends
== max
Get the highest value of a property
Friend.max(:age) # returns the age of the oldest friend Friend.max(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the age of the oldest female friends
== avg
Get the average value of a property
Friend.avg(:age) # returns the average age of friends Friend.avg(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the average age of the female friends
== sum
Get the total value of a property
Friend.sum(:age) # returns total age of all friends Friend.sum(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the total age of all female friends
FAQs
Unknown package
We found that sbf-dm-aggregates demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.