{"id":15403450,"url":"https://github.com/mbj/aql","last_synced_at":"2025-04-16T03:16:30.211Z","repository":{"id":6588260,"uuid":"7830758","full_name":"mbj/aql","owner":"mbj","description":"The ArangoDB AQL AST and to_source implementation","archived":false,"fork":false,"pushed_at":"2013-06-09T14:36:33.000Z","size":473,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-16T03:16:08.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbj.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-25T23:48:56.000Z","updated_at":"2022-08-24T14:59:39.000Z","dependencies_parsed_at":"2022-09-15T16:41:58.731Z","dependency_job_id":null,"html_url":"https://github.com/mbj/aql","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Faql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Faql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Faql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Faql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbj","download_url":"https://codeload.github.com/mbj/aql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188431,"owners_count":21227015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:08:38.614Z","updated_at":"2025-04-16T03:16:30.181Z","avatar_url":"https://github.com/mbj.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"AQL\n===\n\n[![Build Status](https://secure.travis-ci.org/mbj/aql.png?branch=master)](http://travis-ci.org/mbj/aql)\n[![Dependency Status](https://gemnasium.com/mbj/aql.png)](https://gemnasium.com/mbj/aql)\n[![Code Climate](https://codeclimate.com/github/mbj/aql.png)](https://codeclimate.com/github/mbj/aql)\n\nGenerator for the ArangoDB Query Language [AQL](http://www.arangodb.org/manuals/current/Aql.html) in Ruby. It is used as a backend for [axiom-arango-adapter](https://github.com/mbj/axiom-arango-adapter).\n\nUsing AQL\n---------\n\nThere is currently no stable public API.\n\nInstallation\n------------\n\nInstall the gem `aql` via your preferred method.\n\nExamples\n--------\n\nThis gem does not have a public API. Please do not use it as a way to generate AQL statements by hand - this gem is not intended for this purpose. \nInstead write a library that uses this gem to generate AQL. \nJust to make it easier for you to get into the code, here is an example on how to generate a simple AQL statement:\n\n```ruby\nrequire 'aql'\n\ninclude AQL\n\nperson    = Node::Name.new('person')\nfirstname = Node::Name.new('firstname')\nlastname  = Node::Name.new('lastname')\n\nperson_firstname = Node::Attribute.new(person, firstname)\n\nnode = Node::Operation::For.new(\n  person, \n  Node::Name.new('people'),\n  Node::Block.new(\n    [\n      Node::Operation::Unary::Filter.new(\n        Node::Operator::Binary::Equality.new(person_firstname, Node::Literal::Primitive::String.new('Markus'))\n      ),\n      Node::Operation::Unary::Return.new(\n        Node::Literal::Primitive::Composed::Document.new([\n          Node::Literal::Composed::Document::Attribute.new(\n            person_firstname,\n            Node::Attribute.new(person, Node::Name.new('lastname'))\n          )\n        ])\n      )\n    ]\n  )\n)\n\nputs node.aql\n#=\u003e \"FOR `person` IN `people` FILTER (`person`.`firstname` == \"Markus\") RETURN {`person`.`firstname`: `person`.`lastname`}\"\n```\n\nCredits\n-------\n\n* [Markus Schirp (mbj)](https://github.com/mbj) Author\n* [triAGENS](https://github.com/triAGENS) For sponsoring this work!\n\nContributing\n-------------\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n* Commit, do not mess with Rakefile or version\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\nLicense\n-------\n\nThis gem is published under the MIT license. See LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbj%2Faql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbj%2Faql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbj%2Faql/lists"}