Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

c.Value("tx") and c.Bind #3

Closed
beatscode opened this issue Jun 4, 2017 · 0 comments
Closed

c.Value("tx") and c.Bind #3

beatscode opened this issue Jun 4, 2017 · 0 comments

Comments

@beatscode
Copy link

Hello, Just studying the code to gain some understanding. I was wondering the following

What does tx := c.Value("tx").(*pop.Connection) achieve here? Value method doesn't tell me more than just getting the key value from the current context. Just not clear where tx comes from.
https://github.com/gobuffalo/toodo/blob/master/actions/todos.go#L36

I'm also wondering what c.Bind() does as well.

Any clarification would be appreciated. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant