Skip to content

Commit

Permalink
Allow cockroachdb as a provider and use the postgres adapter (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scalahansolo authored Jan 3, 2024
1 parent d44b481 commit c98f76f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/generator/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function writeModule(basePath: string, module: Module) {
function getAdapter(options: GeneratorOptions) {
return (() => {
switch (options.datasources[0].provider) {
case 'cockroachdb': // CockroahDB should be postgres compatible
case 'postgres':
case 'postgresql':
return postgresAdapter
Expand Down

0 comments on commit c98f76f

Please sign in to comment.