// NewUnsafe returns a new SQLX connection that will succeed scanning when
// one or more columns in a SQL result have no corresponding fields in the
// destination struct.
NewUnsafe returns a new SQLX connection that will succeed scanning when
one or more columns in a SQL result have no corresponding fields in the
destination struct.
// NewUnsafe returns a new SQLX connection that will succeed scanning when // one or more columns in a SQL result have no corresponding fields in the // destination struct .
func NewUnsafe(driverName, dsn string) (*Connection, error) {
	con, err := sqlx.Connect(driverName, dsn)
	if err != nil {
		return nil, err
	}
	con = con.Unsafe()
	return &Connection{
		Queryable: NewQueryable(con),
		con:       con,
		dsn:       dsn,
	}, nil
}
func NewUnsafe ( driverName , dsn string ) ( * Connection , error ) { con , err := sqlx . Connect ( driverName , dsn ) if err != nil { return nil , err } con = con . Unsafe ( ) return & Connection { Queryable : NewQueryable ( con ) , con : con , dsn : dsn , } , nil }
NewUnsafe returns a new SQLX connection that will succeed scanning when
one or more columns in a SQL result have no corresponding fields in the
destination struct.
NewUnsafe returns a new SQLX connection that will succeed scanning when one or more columns in a SQL result have no corresponding fields in the destination struct .
// Unsafe returns a version of DB which will silently succeed to scan when // columns in the SQL result have no fields in the destination struct.