© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
XataX
Xata•13mo ago•
12 replies
Oreki

Help with Drizzle

Hey team,

i would like to run introspect and pull commands from drizzle-kit, but i seem to be running into an error

the config:-
import { defineConfig } from 'drizzle-kit';

import { getXataClient } from './src';

export default defineConfig({
  dialect: 'postgresql',
  out: './drizzle',
  dbCredentials: {
    url: getXataClient().sql.connectionString,
  },
  verbose: true,
});
import { defineConfig } from 'drizzle-kit';

import { getXataClient } from './src';

export default defineConfig({
  dialect: 'postgresql',
  out: './drizzle',
  dbCredentials: {
    url: getXataClient().sql.connectionString,
  },
  verbose: true,
});


The error :-
error: unable to connect to the appropriate database
error: unable to connect to the appropriate database


Additional Information :-

Driver: pg
Beta Direct Access Enabled: false
Xata banner
XataJoin
This is Xata's community Discord server, where we discuss all things Xata: projects, features, dreams!
1,125Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Migrations with Drizzle
XataXXata / help
2y ago
pgroll with drizzle generated migrations - possible?
XataXXata / help
14mo ago
A problem with Drizzle and Auth.js
XataXXata / help
2y ago