{"id":16345303,"url":"https://github.com/inscapist/neo4j-go-mapper","last_synced_at":"2026-05-04T13:31:55.046Z","repository":{"id":129899681,"uuid":"220251547","full_name":"inscapist/neo4j-go-mapper","owner":"inscapist","description":"Neo4J data mapper library with generics support \u003cT\u003e","archived":false,"fork":false,"pushed_at":"2019-11-07T15:14:53.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T15:34:54.934Z","etag":null,"topics":["mapper","neo4j","neo4j-driver","reflect"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inscapist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-07T14:09:08.000Z","updated_at":"2020-10-10T01:47:33.000Z","dependencies_parsed_at":"2023-04-25T21:31:24.278Z","dependency_job_id":null,"html_url":"https://github.com/inscapist/neo4j-go-mapper","commit_stats":null,"previous_names":["inscapist/neo4j-go-mapper","sagittaros/neo4j-go-mapper"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/inscapist/neo4j-go-mapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fneo4j-go-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fneo4j-go-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fneo4j-go-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fneo4j-go-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inscapist","download_url":"https://codeload.github.com/inscapist/neo4j-go-mapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fneo4j-go-mapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32609447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["mapper","neo4j","neo4j-driver","reflect"],"created_at":"2024-10-11T00:30:42.002Z","updated_at":"2026-05-04T13:31:55.005Z","avatar_url":"https://github.com/inscapist.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neo4J go mapper\n\nData mapper library for [Neo4J go driver](https://github.com/neo4j/neo4j-go-driver)\nRefer [test](./test) for usage examples.\n\n## How it works\nPackage mapper makes heavy use of `reflect` to construct values out of specified types (an empty, initialized value of a type).\nThis makes it easy to read arbitrary values from neo4j client. Examples [here](./test/reader_test.go). Supports `slice` and `struct` as return types.\n```\nUsage:\n- pass empty, initialized type(s) as the last argument(s) of `ReadSingleRow` and `ReadSingleRow`\n- get back values and cast them back into the required types\n```\n\n## Interface\n\n```go\n// This is the interface implemented by Client\ntype Mapper interface {\n\t// Ensure Neo4J connection\n\tPing() error\n\n\t// Closes bolt driver\n\tClose() error\n\n\t// Execute a cypher statement\n\tExec(cypher string, params map[string]interface{}) error\n\n\t// Query all results/rows from Neo4J\n\tQuery(\n\t\tcypher string,\n\t\tparams map[string]interface{},\n\t\ttransform func(record neo4j.Record) interface{},\n\t) ([]interface{}, error)\n\n\t// Query a single Row from Neo4J, for example when the result is a `count`\n\tQuerySingle(\n\t\tcypher string,\n\t\tparams map[string]interface{},\n\t\ttransform func(record neo4j.Record) interface{},\n\t) (interface{}, error)\n\n\t// The following 2 functions are Reader utilities for convenience.\n\t// Pass in initiated empty values in the ordering that corresponds to result elements, cast it back such as `val.(MyType)`\n\tReadSingleRow(cypher string, params map[string]interface{}, blankTypes ...interface{}) ([]interface{}, error)\n\tReadRows(cypher string, params map[string]interface{}, blankTypes ...interface{}) ([][]interface{}, error)\n\n\t// Use this to run `CREATE INDEX/CONSTRAINTS`\n\tBootstrap(cypherStmts []string) error\n}\n```\n\n## Installation\n```\ngo get github.com/sagittaros/neo4j-go-mapper/mapper\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finscapist%2Fneo4j-go-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finscapist%2Fneo4j-go-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finscapist%2Fneo4j-go-mapper/lists"}