question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dbUrl does not work

See original GitHub issue

Hi, I’m trying to connect to ad DB using the dbUrl field in configuration file but it does not work

{
  "transforms": [
    {
      "mode": "sql",
      "include": "**/*.sql",
      "emitTemplate": "{{dir}}/{{name}}.queries.ts"
    }
  ],
  "srcDir": "./src/",
  "failOnError": false,
  "camelCaseColumnNames": false,
  "dbUrl": "postgres://postgres:postgres@localhost:5432/postgres"
}

I got this errors:

Error in query. Details: {
  errorCode: 'parserOpenTable',
  hint: undefined,
  message: 'relation "engines" does not exist',
  position: '54'
}

But it works perfectly if I use the db object instead!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ludusrussocommented, Mar 26, 2021

Great! It works 😄

1reaction
adelszcommented, Mar 25, 2021

You are right, seems like v0.10.1 was built from an older commit. Pushed a new version (v0.10.2) which fixes that. Let me know if the issue persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xo/dburl - GitHub
Provides standardized way to parse and open URLs for popular databases PostgreSQL, ... Please note that dburl does not import actual SQL drivers,...
Read more >
Driver manager not using the correct driver for the DB url
When I try to connect to aurora DB I would expect DriverManager to use the MariaDB driver - but instead it is using...
Read more >
Establishing a Connection (The Java™ Tutorials > JDBC ...
The samples in this tutorial use a URL that does not specify a specific database because the samples create a new database. In...
Read more >
URL filtering implementation and troubleshooting
This article presents a few methods of implementing and troubleshooting URL filtering. On Palo Alto Networks devices, PAN-DB URL Filtering ...
Read more >
DTP » Oracle DB URL failure, must have slash - Eclipse
I selected type Oracle and the Oracle Thin driver version 10 , file ojdbc14.jar. The problem is that in the general Properties dialog,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found