func (db Database) Query(ctx context.Context, q Query, dest ...interface{}) error {
	ctx, cancelFunc := context.WithTimeout(ctx, db.QueryPeriod)
	defer cancelFunc()
	row := db.DB.QueryRowContext(ctx, q.Cmd(), q.Args()...)
	if err := row.Scan(dest...); err != nil {
		return fmt.Errorf("quering into destination arguments: %w", err)
	}
	return nil
}
// Query queries a single row, scanning into the destination array.
Query queries a single row, scanning into the destination array.
// Query queries a single row scanning into the destination array .
func (db Database) Query(ctx context.Context, q Query, dest ...interface{}) error {
	ctx, cancelFunc := context.WithTimeout(ctx, db.QueryPeriod)
	defer cancelFunc()
	row := db.DB.QueryRowContext(ctx, q.Cmd(), q.Args()...)
	if err := row.Scan(dest...); err != nil {
		return fmt.Errorf("quering into destination arguments: %w", err)
	}
	return nil
}
func ( db Database ) Query ( ctx context . Context , q Query , dest ... interface { } ) error { ctx , cancelFunc := context . WithTimeout ( ctx , db . QueryPeriod ) defer cancelFunc ( ) row := db . DB . QueryRowContext ( ctx , q . Cmd ( ) , q . Args ( ) ... ) if err := row . Scan ( dest ... ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
Query queries a single row, scanning into the destination array.
Query queries a single row scanning into the destination array .