Comments (3)
Hey @calvin2021y ,
Thanks for reaching out.
In general, I prefer using the OS API for writing to a file. This is more in line with the spirit of orthogonality that we're trying to build this project upon.
However, engineering is a balancing act between principles and constraints. Do you mind sharing more about your use case? What hardship specifically are you running into ?
Thanks
from atlas.
for example, a script like this will quit and print error if atlas return error.
#!/usr/bin/env bash
e(){
echo " >>>: $*"
$*
return $?
}
e docker exec -t mysql mysqldump -d --skip-add-drop-table test --result-file=/tmp/test.sql || exit $?
e docker exec -t atlas atlas schema inspect -u mysql://... -s test --out-file=/tmp/test.hcl || exit $?
echo all task finished without error
If you use docker exec -t atlas atlas schema inspect -u mysql://... -s test > test.hcl
, the result will end at host dir(not container dir).
It also hard to know if there is some error, because the message not show at console but save into /tmp/test.hcl
. with --result-file=/tmp/test.sql
you will see error message from mysqldump in your console.
from atlas.
any comment ?
from atlas.
Related Issues (20)
- Integration of AtlasGo with an existing target database HOT 1
- Unable to apply changes if schema contains ENUM HOT 3
- Create Nix package HOT 4
- operator: improve logging and explain what the operator does
- external_schema doesn't work with `atlas schema diff` HOT 2
- Atlas cannot parse 'double unsigned zerofill' correctly on MySQL HOT 7
- Add support for NULLS NOT DISTINCT
- Postgres: missing FK constraints for non-owner
- CLI: atlasgo.sh installer ignoring `ATLAS_FLAVOR="community"` HOT 5
- Support libsql+ws:// scheme for local environment libSQL databases HOT 7
- `AUTO_INCREMENT` do not work with `atlas schema diff` in mysql
- Unexpected view definition on v0.13.0 HOT 16
- when use schema_diff with error executing "schema_diff" at <sql $>: error calling sql: alter table "xxx": unexpected attribute change (expect IDENTITY): [] HOT 3
- Generating migration for time field with default value is not working HOT 1
- duplicate table names breaks schema inspect HOT 1
- uuid_generate_v4() does not exist error HOT 14
- SQL Schema Directory leads to `Error: sql/migrate: read migration directory state` HOT 2
- [Question]: Using variables from `atlas.hcl` env inside CLI command HOT 3
- migrate diff: object does not have an attribute named "column" HOT 2
- If the password contains special characters, the atlas execution fails HOT 3
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 atlas.