Giter Site home page Giter Site logo

Comments (3)

rotemtam avatar rotemtam commented on September 25, 2024

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.

calvin2021y avatar calvin2021y commented on September 25, 2024

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.

calvin2021y avatar calvin2021y commented on September 25, 2024

any comment ?

from atlas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.