harness-drone/store/logs/scan.go
2019-02-19 15:56:41 -08:00

16 lines
433 B
Go

// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
package logs
import "github.com/drone/drone/store/shared/db"
// helper function scans the sql.Row and copies the column
// values to the destination object.
func scanRow(scanner db.Scanner, dst *logs) error {
return scanner.Scan(
&dst.ID,
&dst.Data,
)
}