Comments (3)
FYI, you can use environment variables transparently in gnorm.tom configuration values, so a ConnStr that has -p=$DB_PASSWORD will do the right thing.
However, I agree that being able to specify the connection string on the CLI is probably also good.
from gnorm.
Thanks for the tip on the environment variables. I'll go that route for now. I'll probably have a pull request for the cli flag next weekend if you agree it has value.
from gnorm.
definitely think the cli flag would be good, and would love a PR. Maybe -d and --database? unfortunately, -c is already taken. if you could add it to preview and gen, that would be great.
from gnorm.
Related Issues (20)
- mssql support HOT 1
- sqlite support HOT 2
- Versus on website is disingenuous towards sqlboiler HOT 5
- Add useful default templates HOT 16
- Gnorm does not seem to work with recent mysql version (v8) HOT 2
- MariaDB, Error: name "GENERATION_EXPRESSION": unsupported Scan HOT 1
- Schema.Enums contains one value for each value instead of each type HOT 9
- Support for keyword table names in Postgres
- gnorm do not recognize default value from identity
- ForeignKeyRefs being overwritten
- Support for TableType HOT 1
- Is this project dead ? HOT 4
- Error : function "plural" not defined
- Is there a Protobuf example? HOT 8
- Build instructions don't work as given HOT 5
- Build instructions don't match the source code
- Why am I getting this? Error: error scanning foreign key constraint: sql: Scan error on column index 5, name "table_name": converting NULL to string is unsupported HOT 12
- pq version does not work with postgres 10 HOT 2
- database/drives/postgres/parse.go::queryEnums query adds an enum per enum value rather than actual enum HOT 2
- Table name is unknown in enum generation
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 gnorm.