{"id":26769898,"url":"https://github.com/bbuck/talon","last_synced_at":"2025-03-28T22:46:22.016Z","repository":{"id":57524119,"uuid":"70991360","full_name":"bbuck/talon","owner":"bbuck","description":"Talon is a Neo4j ORM to simply working between the database and Go.","archived":false,"fork":false,"pushed_at":"2017-01-29T18:23:42.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T16:50:04.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bbuck.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-10-15T14:06:32.000Z","updated_at":"2021-05-20T12:25:45.000Z","dependencies_parsed_at":"2022-09-16T16:46:54.121Z","dependency_job_id":null,"html_url":"https://github.com/bbuck/talon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuck%2Ftalon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuck%2Ftalon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuck%2Ftalon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuck%2Ftalon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbuck","download_url":"https://codeload.github.com/bbuck/talon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246112648,"owners_count":20725300,"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":"2025-03-28T22:46:21.467Z","updated_at":"2025-03-28T22:46:22.011Z","avatar_url":"https://github.com/bbuck.png","language":"Go","readme":"# Pre-alpha!\n\nThis project is in a pre-alpha phase. It's not ready for use or consumption. \nAt such a time the basic features are implmented I'll create a v0 tag for\ngopkg to use and remove this banner.\n\n# Goals\n\nI'm trying to simplify dynamic Neo4j querying by creating constructs to build\nCypher queries in Code in steps or all at once and allow working with Go \nstructs. For example, a common usage may be aligning stucts to node labels in\nNeo4j and so at it's simplest:\n\n```go\ntype Person struct {\n        ID int `talon:\"id\"`\n        Firstname string `talon:\"firstname\"`\n        Lastname string `talon:\"lastname\"`\n}\np := Person{ID: 1}\ndb.Find(\u0026p)\n```\n\nWhich will query the database `MATCH (_ref1:Person {id: 1}) RETURN _ref1` and\nonce the command has executed you're free to use the properties freely.\n\nThe other thing is building Cypher queries in code:\n\n```go\ndb.Match(\n        Node()\n                .Named(\"a\")\n                .Labeled(\"Person\")\n                .WithProperties(talon.Properties{\n                        \"id\": 1,\n                })\n).Retrun(\"a\").String()\n```\n\nProduces a similar query as fetching the raw struct: `MATCH (a:Person {id: 1}) RETURN a`.\n\nFrom the point of having a query you can easily load single rows into structs: `query.LoadResult(\u0026p)\nor work with many rows:\n\n```go\nvar people []Person\ndb.Match(Node().Named(\"a\").Labeled(\"Person\")).Return(\"a\").LoadResults(\u0026people)\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbuck%2Ftalon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbuck%2Ftalon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbuck%2Ftalon/lists"}