Comments (7)
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.
Thank you, I'll fix this asap
from atlas-go-sdk.
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.
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.
Awesome, will try it out and get back to you. Thanks a lot @giautm !
from atlas-go-sdk.
Hello @muku2211, can you give me more detail what is actually printed in the stdout?
from atlas-go-sdk.
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
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-go-sdk.