{"id":38101308,"url":"https://github.com/tingold/bunpostgis","last_synced_at":"2026-01-16T21:14:42.914Z","repository":{"id":57813302,"uuid":"527617129","full_name":"tingold/bunpostgis","owner":"tingold","description":"Adds PostGIS support to Bun ORM using Orb Geometry","archived":false,"fork":false,"pushed_at":"2022-08-25T21:11:32.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T00:41:18.098Z","etag":null,"topics":["bun","geospatial","gis","orm"],"latest_commit_sha":null,"homepage":"","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/tingold.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":"2022-08-22T15:11:43.000Z","updated_at":"2023-09-30T11:43:59.000Z","dependencies_parsed_at":"2022-08-26T13:11:56.811Z","dependency_job_id":null,"html_url":"https://github.com/tingold/bunpostgis","commit_stats":null,"previous_names":["tingold/bun-postgis"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tingold/bunpostgis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingold%2Fbunpostgis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingold%2Fbunpostgis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingold%2Fbunpostgis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingold%2Fbunpostgis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tingold","download_url":"https://codeload.github.com/tingold/bunpostgis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingold%2Fbunpostgis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["bun","geospatial","gis","orm"],"created_at":"2026-01-16T21:14:42.086Z","updated_at":"2026-01-16T21:14:42.909Z","avatar_url":"https://github.com/tingold.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostGIS support for Bun ORM\n\n[![Build, Lint, Test](https://github.com/tingold/bunpostgis/actions/workflows/go.yml/badge.svg)](https://github.com/tingold/bunpostgis/actions/workflows/go.yml)  [![Go Report Card](https://goreportcard.com/badge/github.com/tingold/bunpostgis/pkg)](https://goreportcard.com/report/github.com/tingold/bunpostgis/pkg)\n\nThis module provides a simple wrapper that allows [PostGIS](https://postgis.net/) geometry types to be used in [Bun](https://bun.uptrace.dev/).\nIt builds on the awesome `ewkb` support already in [Orb](https://github.com/paulmach/orb). \n\n**Only pgx supported**\n\nSupports Point/MultiPoint, Linestring/MultiLinestring, Polygon/MultiPolygon.\n\n### Usage\n\nUse it in a struct and tag the type appropriately if you want Bun to be able to create the table:\n\n```\ntype SampleStruct struct {\n\tbun.BaseModel `bun:\"bunpostgis_test_table\"`\n\tGeoField      bunpostgis.PostgisGeometry `bun:\"type:Geometry\"`\n\tName          string\n}\n```\n\nSee [`test/postgis_test.go`](test/postgis_test.go) for a full example \n\n## Testing\n\nTests have been refactored into their own package to avoid unessesary imports when using the library.\n\nThis test expects [Postgres environment variables](https://www.postgresql.org/docs/current/libpq-envars.html) to be present to configure the database connection -- intended mostly for CI. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftingold%2Fbunpostgis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftingold%2Fbunpostgis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftingold%2Fbunpostgis/lists"}