We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (pool ConnPool) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) { ftQuery, stQuery, table, err := pool.sharding.resolve(query, args...) if err != nil { return nil, err } pool.sharding.querys.Store("last_query", stQuery) if table != "" { if r, ok := pool.sharding.configs[table]; ok { if r.DoubleWrite { pool.ConnPool.ExecContext(ctx, ftQuery, args...) } } } return pool.ConnPool.QueryContext(ctx, stQuery, args...) }
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
Your Question
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered: