code: func PgLanguageByLanname(db XODB, lanname pgtypes.Name) (*PgLanguage, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, lanname, lanowner, lanispl, lanpltrusted, lanplcallfoid, laninline, lanvalidator, lanacl ` +
  		`FROM pg_catalog.pg_language ` +
  		`WHERE lanname = $1`
  
  	// run query
  	XOLog(sqlstr, lanname)
  	pl := PgLanguage{}
  
  	err = db.QueryRow(sqlstr, lanname).Scan(&pl.Tableoid, &pl.Cmax, &pl.Xmax, &pl.Cmin, &pl.Xmin, &pl.Oid, &pl.Ctid, &pl.Lanname, &pl.Lanowner, &pl.Lanispl, &pl.Lanpltrusted, &pl.Lanplcallfoid, &pl.Laninline, &pl.Lanvalidator, &pl.Lanacl)
  	if err != nil {
  		return nil, err
  	}
  
  	return &pl, nil
  }
docs: // PgLanguageByLanname retrieves a row from 'pg_catalog.pg_language' as a PgLanguage.
  //
  // Generated from index 'pg_language_name_index'.