Git Product home page Git Product logo

Comments (7)

muku2211 avatar muku2211 commented on August 17, 2024 1

Hi @giautm , here's a sample output for repr.Println(err)

atlasexec.cliError{
  stdout: "{\"Driver\":\"postgres\",\"URL\":{\"Scheme\":\"postgres\",\"Opaque\":\"\",\"User\":{},\"Host\":\"0.0.0.0:5432\",\"Path\":\"/tenant_local\",\"RawPath\":\"\",\"OmitHost\":false,\"ForceQuery\":false,\"RawQuery\":\"search_path=public\\u0026sslmode=disable\",\"Fragment\":\"\",\"RawFragment\":\"\",\"Schema\":\"public\"},\"Current\":\"20231225071955\",\"Start\":\"2024-01-12T10:41:48.038779+05:30\",\"End\":\"2024-01-12T10:41:48.058348+05:30\",\"Message\":\"No migration files to execute\"}\n{\"Driver\":\"postgres\",\"URL\":{\"Scheme\":\"postgres\",\"Opaque\":\"\",\"User\":{},\"Host\":\"0.0.0.0:5432\",\"Path\":\"/tenant_test\",\"RawPath\":\"\",\"OmitHost\":false,\"ForceQuery\":false,\"RawQuery\":\"search_path=public\\u0026sslmode=disable\",\"Fragment\":\"\",\"RawFragment\":\"\",\"Schema\":\"public\"},\"Current\":\"20231225071955\",\"Start\":\"2024-01-12T10:41:48.177624+05:30\",\"End\":\"2024-01-12T10:41:48.18117+05:30\",\"Message\":\"No migration files to execute\"}",
}

Here, I was expecting this to be returned in the response, not err.

from atlas-go-sdk.

giautm avatar giautm commented on August 17, 2024 1

Thank you, I'll fix this asap

from atlas-go-sdk.

muku2211 avatar muku2211 commented on August 17, 2024 1

Yes, that's right, I'm using it for multiple tenants, following the instructions outlined in this blog.

I just checked with a single database and it works as expected. So yes, the problem is with multiple databases

from atlas-go-sdk.

giautm avatar giautm commented on August 17, 2024 1

Hello @muku2211, we just release v0.4.0. From now on, you can use MigrateApplySlice to work with multiple databases. Cheer!!

Please let me know if you have any other issue,

from atlas-go-sdk.

muku2211 avatar muku2211 commented on August 17, 2024 1

Awesome, will try it out and get back to you. Thanks a lot @giautm !

from atlas-go-sdk.

giautm avatar giautm commented on August 17, 2024

Hello @muku2211, can you give me more detail what is actually printed in the stdout?

from atlas-go-sdk.

giautm avatar giautm commented on August 17, 2024

Hey @muku2211, I just checked again the output. Look like you run atlas command for multiple tenants. So the result for each tenant was printed on a new line, and AtlasExec was unable to parse it into the response structure :-/

from atlas-go-sdk.

Related Issues (7)

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.