{"id":30858956,"url":"https://github.com/solid-software/deno_postgres_interop","last_synced_at":"2025-09-07T14:55:44.422Z","repository":{"id":193256709,"uuid":"688152992","full_name":"solid-software/deno_postgres_interop","owner":"solid-software","description":"🦖 Deno Postgres driver interop","archived":false,"fork":false,"pushed_at":"2024-02-02T18:14:26.000Z","size":175,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-14T13:20:26.685Z","etag":null,"topics":["dart","deno-deploy","postgres","supabase"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solid-software.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-06T18:58:59.000Z","updated_at":"2024-11-11T00:26:38.000Z","dependencies_parsed_at":"2023-11-15T16:47:10.216Z","dependency_job_id":"89adb75c-1fb8-4b5c-8e04-04a2934f2b5d","html_url":"https://github.com/solid-software/deno_postgres_interop","commit_stats":null,"previous_names":["solid-software/deno_postgres_interop"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/solid-software/deno_postgres_interop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-software%2Fdeno_postgres_interop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-software%2Fdeno_postgres_interop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-software%2Fdeno_postgres_interop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-software%2Fdeno_postgres_interop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solid-software","download_url":"https://codeload.github.com/solid-software/deno_postgres_interop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solid-software%2Fdeno_postgres_interop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274051961,"owners_count":25214030,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dart","deno-deploy","postgres","supabase"],"created_at":"2025-09-07T14:55:33.270Z","updated_at":"2025-09-07T14:55:44.400Z","avatar_url":"https://github.com/solid-software.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_postgres_interop\n[![style: solid](https://img.shields.io/badge/style-solid-orange)](https://pub.dev/packages/solid_lints)\n[![deno_postgres_interop](https://nokycucwgzweensacwfy.supabase.co/functions/v1/get_project_badge?projectId=241)](https://nokycucwgzweensacwfy.supabase.co/functions/v1/get_project_url?projectId=241)\n\nThe package allows the use\nof [Deno Postgres](https://deno.land/x/postgres)\nin [Deno Deploy](https://deno.com/deploy)\non [dart_edge](https://docs.dartedge.dev/)\nby creating interop bindings for the js library\nsince other drivers rely on dart:io and don't work there.\n\nThe main scenario is Supabase Edge Functions, but it should also work for other cases with dart2js.\n\n## Usage with Supabase edge functions\n1. Add dependency in your pubspec.yaml:\n   ```yaml\n   dependencies:\n     deno_postgres_interop: \u003cINSERT LATEST VERSION\u003e\n   ```\n\n   or run\n\n   ```bash\n   dart pub add deno_postgres_interop\n   ```\n\n2. Add the config file (default name is `add_imports.yaml`).\n   This file is used to lookup files where the classes are defined.\n   ```yaml\n   file_url_prefix: 'https://deno.land/x/postgres@v0.17.0/'\n\n   classes_map:\n      'query/query.ts':\n         - QueryObjectResult\n      'mod.ts':\n         - QueryClient\n         - Client\n         - Transaction\n   ```\n\n3. Import the package:\n   ```dart\n   import 'package:deno_postgres_interop/deno_postgres_interop.dart';\n   ```\n\n4. Compile the code that uses this package with:\n   ```bash\n   dart run edge build supabase_functions\n   ```\n\n5. Add imports to generated file by calling the script:\n   ```bash\n   dart run deno_postgres_interop:add_imports \\\n     --filename=example/functions/dart_edge/main.dart.js [\\\n     --configpath=add_imports.yaml] #this is the default value\n   ```\n   Note: your filename may differ from the example\n\n6. You can use the function now.\n\nNote that because of the [bug in dart_edge](https://github.com/invertase/dart_edge/issues/50), SDK versions \u003e= 3.1.0 are not actually supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolid-software%2Fdeno_postgres_interop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolid-software%2Fdeno_postgres_interop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolid-software%2Fdeno_postgres_interop/lists"}