Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COUNT function #62

Open
iankressin opened this issue Nov 28, 2024 · 3 comments
Open

COUNT function #62

iankressin opened this issue Nov 28, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request eql-core good first issue Good for newcomers

Comments

@iankressin
Copy link
Owner

Description

The COUNT function receives a query expression as param an returns a table containing only one row, called count with the total number of rows returned from the query passed in.

Definition:

query = GET <[fields, ]> FROM <entity> <[entity_id, ]> ON <chain>
COUNT(<query>)

Examples:

# ✅ Valid query
COUNT(GET * FROM tx WHERE block = latest ON eth)
@iankressin iankressin added enhancement New feature or request good first issue Good for newcomers eql-core labels Nov 28, 2024
@0xdevcollins
Copy link

Can I attempt this issue?

@mimisavage
Copy link

Can I start working on this?

@iankressin
Copy link
Owner Author

@0xdevcollins assigned to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request eql-core good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants