René's URL Explorer Experiment


Title: Basic usage - relation "x" does not exist · Issue #3350 · sqlc-dev/sqlc · GitHub

Open Graph Title: Basic usage - relation "x" does not exist · Issue #3350 · sqlc-dev/sqlc

X Title: Basic usage - relation "x" does not exist · Issue #3350 · sqlc-dev/sqlc

Description: Version 1.26.0 What happened? Getting relation "x" does not exist for every query I mention in my queries .sql files Relevant log output query.sql:1:1: relation "models" does not exist query.sql:15:1: relation "models" does not exist que...

Open Graph Description: Version 1.26.0 What happened? Getting relation "x" does not exist for every query I mention in my queries .sql files Relevant log output query.sql:1:1: relation "models" does not exist query.sql:15...

X Description: Version 1.26.0 What happened? Getting relation "x" does not exist for every query I mention in my queries .sql files Relevant log output query.sql:1:1: relation "models" does no...

Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3350

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Basic usage  - relation \"x\" does not exist","articleBody":"### Version\r\n\r\n1.26.0\r\n\r\n### What happened?\r\n\r\nGetting `relation \"x\" does not exist` for every query I mention in my `queries` .sql files\r\n\r\n### Relevant log output\r\n\r\n```shell\r\nquery.sql:1:1: relation \"models\" does not exist\r\nquery.sql:15:1: relation \"models\" does not exist\r\nquery.sql:20:1: relation \"models\" does not exist\r\nquery.sql:28:1: relation \"models\" does not exist\r\n```\r\n\r\n\r\n### Database schema\r\n\r\n```sql\r\nCREATE TABLE `transcription_jobs` (\r\n  `id` integer PRIMARY KEY,\r\n  `org_id` integer,\r\n  `user_id` integer,\r\n  `started_at` timestamp,\r\n  `ended_at` timestamp,\r\n  `tokens` integer,\r\n  FOREIGN KEY (`org_id`) REFERENCES `organization` (`org_id`)\r\n);\r\n\r\nCREATE TABLE `organization` (\r\n  `org_id` integer PRIMARY KEY\r\n);\r\n\r\nCREATE TABLE `models` (\r\n  `id` integer PRIMARY KEY,\r\n  `model_name` VARCHAR(255),\r\n  `balance` integer,\r\n  `org_id` integer,\r\n  FOREIGN KEY (`org_id`) REFERENCES `organization` (`org_id`)\r\n);\r\n```\r\n\r\n\r\n### SQL queries\r\n\r\n```sql\r\n-- name: CreateModel :one\r\nINSERT INTO models (\r\n    id,\r\n    model_name,\r\n    org_id,\r\n    balance\r\n) VALUES (\r\n    :id,\r\n    :model_name,\r\n    :org_id,\r\n    :balance\r\n) RETURNING *;\r\n\r\n-- name: GetModel :one\r\nSELECT * FROM models\r\nWHERE id = :id\r\nLIMIT 1;\r\n\r\n-- name: UpdateModel :one\r\nUPDATE models\r\nSET model_name = :model_name,\r\n        org_id = :org_id,\r\n        balance = :balance\r\nWHERE id = :id\r\nRETURNING *;\r\n\r\n-- name: DeleteModel :one\r\nDELETE FROM models\r\nWHERE id = :id\r\nRETURNING *;\r\n```\r\n\r\n\r\n### Configuration\r\n\r\n```yaml\r\nversion: \"2\"\r\nplugins:\r\n  - name: \"py\"\r\n    wasm:\r\n      url: \"https://downloads.sqlc.dev/plugin/sqlc-gen-python_1.0.0.wasm\"\r\n      sha256: \"aca83e1f59f8ffdc604774c2f6f9eb321a2b23e07dc83fc12289d25305fa065b\"\r\nsql:\r\n  - schema: \"path_to_folder\"\r\n    queries: \"path_to_folder\"\r\n    engine: \"sqlite\"\r\n    codegen:\r\n      - plugin: \"py\"\r\n        out: \"src\"\r\n        options:\r\n          package: \"foo\"\r\n          emit_sync_querier: true\r\n          emit_async_querier: true\r\n          query_parameter_limit: 5\r\n```\r\n\r\n\r\n### Playground URL\r\n\r\nhttps://play.sqlc.dev/p/7150dcc1ccab07d5dcca915b08525b015d4f94968345157779d016a74eb04279\r\n\r\n### What operating system are you using?\r\n\r\nmacOS\r\n\r\n### What database engines are you using?\r\n\r\nSQLite\r\n\r\n### What type of code are you generating?\r\n\r\nPython","author":{"url":"https://github.com/eyal-solomon1","@type":"Person","name":"eyal-solomon1"},"datePublished":"2024-04-22T11:46:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/3350/sqlc/issues/3350"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ff2dccd3-5c1c-05c8-af6f-55599cc76454
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id802E:69D3C:D29B19:1163C9E:6A519693
html-safe-nonce691a5e8aa7c26db40eb42222c1642decfb3ce58169bb5ee36e4cccda0d6ecd05
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDJFOjY5RDNDOkQyOUIxOToxMTYzQzlFOjZBNTE5NjkzIiwidmlzaXRvcl9pZCI6IjUwODkzNDYyOTgzMjAwOTg5NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac108ce0dab719dd6ab7f18cd8fe280360d26925c4e4bbf01cb27050ac6c4949d4
hovercard-subject-tagissue:2256326775
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/3350/issue_layout
twitter:imagehttps://opengraph.githubassets.com/84c0ce0b28f7c08f0187f588806d6943c176dd674d688a2c87308ecbde51b359/sqlc-dev/sqlc/issues/3350
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/84c0ce0b28f7c08f0187f588806d6943c176dd674d688a2c87308ecbde51b359/sqlc-dev/sqlc/issues/3350
og:image:altVersion 1.26.0 What happened? Getting relation "x" does not exist for every query I mention in my queries .sql files Relevant log output query.sql:1:1: relation "models" does not exist query.sql:15...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeyal-solomon1
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id193160679
octolytics-dimension-repository_nwosqlc-dev/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193160679
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/issues/3350#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fissues%2F3350
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fissues%2F3350
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/issues/3350
Reloadhttps://github.com/sqlc-dev/sqlc/issues/3350
Reloadhttps://github.com/sqlc-dev/sqlc/issues/3350
Please reload this pagehttps://github.com/sqlc-dev/sqlc/issues/3350
sqlc-dev https://github.com/sqlc-dev
sqlchttps://github.com/sqlc-dev/sqlc
Notifications https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Fork 1.1k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Star 18k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Code https://github.com/sqlc-dev/sqlc
Issues 597 https://github.com/sqlc-dev/sqlc/issues
Pull requests 106 https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality 0 https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
Code https://github.com/sqlc-dev/sqlc
Issues https://github.com/sqlc-dev/sqlc/issues
Pull requests https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
#4120https://github.com/sqlc-dev/sqlc/pull/4120
Basic usage - relation "x" does not existhttps://github.com/sqlc-dev/sqlc/issues/3350#top
#4120https://github.com/sqlc-dev/sqlc/pull/4120
bugSomething isn't workinghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/eyal-solomon1
eyal-solomon1https://github.com/eyal-solomon1
on Apr 22, 2024https://github.com/sqlc-dev/sqlc/issues/3350#issue-2256326775
https://play.sqlc.dev/p/7150dcc1ccab07d5dcca915b08525b015d4f94968345157779d016a74eb04279https://play.sqlc.dev/p/7150dcc1ccab07d5dcca915b08525b015d4f94968345157779d016a74eb04279
bugSomething isn't workinghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.