Comments (4)
Hey @jasonchester!
I could make oradewrc.json
be the base configuration and then optional overload configurations for environments (oradewrc.test.json
, oradewrc.uat.json
).
We also need TEST: Package
and UAT: Package
command for running environemnt specific packaging command.
For example, we have:
oradewrc.json
:
{
...
...
"customField": "this is it."
}
and
oradewrc.test.json
:
{
"customField": "..no this."
}
Then when you use it in your code: '${config["customField"]}'
and package it with TEST: Package
command, it would replace it with "..no this." instead of "this is it.".
Another option would be to store everything in oradewrc.json
and have env-prefixed variables.
For example:
oradewrc.json
:
{
...
...
"customField": "this is it.",
"TEST:customField": "..no this."
}
Is this something similar to what you had in mind?
from oradew-vscode.
Yes, this would be perfect. I like the file per environment approach as opposed to the prefixed variables because it is easier to work with.
- Easier a source control versioning
- Easier to compare environment settings with diff tooling
- Similiar to how other systems have implemented env configs ie. dotnet core
As far as the new environment based packaging commands, i am wondering if it would be better if oradew implemented a Task Provider which could parse the dbconfig.json and generate task definitions for each one defined.
Thanks again.
from oradew-vscode.
I was thinking about Task provider approach just recently...
One disadvantage would be that you can not dynamically bind extension commands to Command palette or UI, as far as I know, but you have to add them manually to extension's package.json
file.
So dynamically loaded tasks with oradew task provider could not be executed as commands as it is done now but only as tasks.
from oradew-vscode.
Environment-specific file configs are now available. @jasonchester, you can try them out.
About implementing task provider for oradew commands, I suggest opening maybe a new issue for the request...
from oradew-vscode.
Related Issues (20)
- Run as Script hangs for a few minutes HOT 3
- Windows econding UTF8 problem HOT 42
- Compile error "ERROR ORA-06550: line 3, column 40:" HOT 8
- problems importing packages from the DB HOT 3
- Terminal output problem matcher HOT 26
- Generate: "output" doesn't work
- Extension causes high cpu load HOT 1
- Encoding error when importing the selected object HOT 8
- Displaying umlauts in terminal output
- Encoding problem in SQL-Statements HOT 3
- dbms_metadata.get_ddl does not work when used in UTL_GENERATE_ORADEW HOT 3
- Initialize Workspace not working HOT 8
- Oracle wallet authentication compatibility, userless & passwordless HOT 9
- Error while trying to retrieve text for error ORA-01804 HOT 5
- Drop support for sqlplus, sqlcl Liquibase ci/cd HOT 8
- Support latest version of node HOT 6
- Generating a source from a database HOT 5
- Create source from a non-DEV env
- Problem importing when object has "SQL" in the name HOT 1
- problems connecting to oracle database (proxy authentication) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oradew-vscode.