code: func Substr(db XODB, v0 []byte, v1 int, v2 string, v3 int, v4 []byte, v5 int, v6 int, v7 string, v8 int, v9 int) ([]byte, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.substr($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)`
  
  	// run query
  	var ret []byte
  	XOLog(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9).Scan(&ret)
  	if err != nil {
  		return nil, err
  	}
  
  	return ret, nil
  }
docs: // Substr calls the stored procedure 'pg_catalog.substr(bytea, integer, text, integer, bytea, integer, integer, text, integer, integer) bytea' on db.