code: func Lag(db XODB, v0 pgtypes.Anyelement, v1 pgtypes.Anyelement, v2 int, v3 pgtypes.Anyelement, v4 int, v5 pgtypes.Anyelement) (pgtypes.Anyelement, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.lag($1, $2, $3, $4, $5, $6)`
  
  	// run query
  	var ret pgtypes.Anyelement
  	XOLog(sqlstr, v0, v1, v2, v3, v4, v5)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4, v5).Scan(&ret)
  	if err != nil {
  		return pgtypes.Anyelement{}, err
  	}
  
  	return ret, nil
  }
docs: // Lag calls the stored procedure 'pg_catalog.lag(anyelement, anyelement, integer, anyelement, integer, anyelement) anyelement' on db.