code: func HasTypePrivilege(db XODB, v0 string, v1 string, v2 pgtypes.Oid, v3 string, v4 pgtypes.Name, v5 string, v6 string, v7 pgtypes.Name, v8 pgtypes.Oid, v9 string, v10 pgtypes.Oid, v11 string, v12 string, v13 pgtypes.Oid, v14 pgtypes.Oid, v15 string) (bool, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.has_type_privilege($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)`
  
  	// run query
  	var ret bool
  	XOLog(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15).Scan(&ret)
  	if err != nil {
  		return false, err
  	}
  
  	return ret, nil
  }
docs: // HasTypePrivilege calls the stored procedure 'pg_catalog.has_type_privilege(text, text, oid, text, name, text, text, name, oid, text, oid, text, text, oid, oid, text) boolean' on db.