Closed JerryNixon closed 3 weeks ago
Can we update dab init to create a .env file when a connection string is supplied?
dab init
.env
my-connection-string
Simple .env file contents:
my-connection-string=whatever-the-user-provided
dab-config.json
Using variables in the JSON:
{ "$schema": "...", "data-source": { "database-type": "mssql", "connection-string": "@env('my-connection-string')" } }
.gitignore
Simple .gitignore file contents:
Future
Azure SQL
Local (including CLI)
REST, GraphQL
No response
What happened?
Can we update
dab init
to create a.env
file when a connection string is supplied?Details:
.env
filemy-connection-string
Simple
.env
file contents:dab-config.json
file.Using variables in the JSON:
Possible additional:
.gitignore
ignoring the.env
file.Simple
.gitignore
file contents:Considerations:
.env
file?.gitignore
file?Version
Future
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
REST, GraphQL
Relevant log output
No response
Code of Conduct