+build go1.8

package squirrel

import (
	
	
	
)
NoContextSupport is returned if a db doesn't support Context.
var NoContextSupport = errors.New("DB does not support Context")
ExecerContext is the interface that wraps the ExecContext method. Exec executes the given query as implemented by database/sql.ExecContext.
type ExecerContext interface {
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
}
QueryerContext is the interface that wraps the QueryContext method. QueryContext executes the given query as implemented by database/sql.QueryContext.
type QueryerContext interface {
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}
QueryRowerContext is the interface that wraps the QueryRowContext method. QueryRowContext executes the given query as implemented by database/sql.QueryRowContext.
type QueryRowerContext interface {
	QueryRowContext(ctx context.Context, query string, args ...interface{}) RowScanner
}
RunnerContext groups the Runner interface, along with the Contect versions of each of its methods
WrapStdSqlCtx wraps a type implementing the standard SQL interface plus the context versions of the methods with methods that squirrel expects.
func ( StdSqlCtx) RunnerContext {
	return &stdsqlCtxRunner{}
}
StdSqlCtx encompasses the standard methods of the *sql.DB type, along with the Context versions of those methods, and other types that wrap these methods.
type StdSqlCtx interface {
	StdSql
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
}

type stdsqlCtxRunner struct {
	StdSqlCtx
}

func ( *stdsqlCtxRunner) ( string,  ...interface{}) RowScanner {
	return .StdSqlCtx.QueryRow(, ...)
}

func ( *stdsqlCtxRunner) ( context.Context,  string,  ...interface{}) RowScanner {
	return .StdSqlCtx.QueryRowContext(, , ...)
}
ExecContextWith ExecContexts the SQL returned by s with db.
func ( context.Context,  ExecerContext,  Sqlizer) ( sql.Result,  error) {
	, ,  := .ToSql()
	if  != nil {
		return
	}
	return .ExecContext(, , ...)
}
QueryContextWith QueryContexts the SQL returned by s with db.
func ( context.Context,  QueryerContext,  Sqlizer) ( *sql.Rows,  error) {
	, ,  := .ToSql()
	if  != nil {
		return
	}
	return .QueryContext(, , ...)
}
QueryRowContextWith QueryRowContexts the SQL returned by s with db.
func ( context.Context,  QueryRowerContext,  Sqlizer) RowScanner {
	, ,  := .ToSql()
	return &Row{RowScanner: .QueryRowContext(, , ...), err: }