-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matteo Collina <[email protected]>
- Loading branch information
Showing
7 changed files
with
185 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,23 @@ const defaultConnectionString = 'postgres://postgres:[email protected]:5432/pos | |
// We extend ServiceGenerator instead of DBGenerator because we | ||
// do not want to allow users to have their own migrations. | ||
class PlatformaticPgHooksGenerator extends ServiceGenerator { | ||
constructor (opts = {}) { | ||
super({ | ||
...opts, | ||
module: '@platformatic/pg-hooks' | ||
}) | ||
} | ||
|
||
getDefaultConfig () { | ||
const res = { | ||
...super.getDefaultConfig(), | ||
plugin: false, | ||
tests: false | ||
} | ||
|
||
return res | ||
} | ||
|
||
getConfigFieldsDefinitions () { | ||
const serviceConfigFieldsDefs = super.getConfigFieldsDefinitions() | ||
return [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters