code: func PgGetViewdef(db XODB, v0 string, v1 pgtypes.Oid, v2 string, v3 bool, v4 pgtypes.Oid, v5 bool, v6 pgtypes.Oid, v7 int) (string, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.pg_get_viewdef($1, $2, $3, $4, $5, $6, $7, $8)`
  
  	// run query
  	var ret string
  	XOLog(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7).Scan(&ret)
  	if err != nil {
  		return "", err
  	}
  
  	return ret, nil
  }
docs: // PgGetViewdef calls the stored procedure 'pg_catalog.pg_get_viewdef(text, oid, text, boolean, oid, boolean, oid, integer) text' on db.