github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/driver/util.go (about)

     1  package driver
     2  
     3  import "database/sql/driver"
     4  
     5  func namedValues(args []driver.Value) []driver.NamedValue {
     6  	named := make([]driver.NamedValue, len(args))
     7  	for i, v := range args {
     8  		named[i] = driver.NamedValue{
     9  			Ordinal: i + 1,
    10  			Value:   v,
    11  		}
    12  	}
    13  	return named
    14  }