Field(3pm)
π NAME π
Lire::Field β the interface to Dlf field's specification, bestie. It's giving "little object that knows everything about one single field" and honestly? Iconic.
β¨ SYNOPSIS β¨
my $field = $schema->field( 'time' );
print "Name: ", $field->name(), "\n", "Type: ", $field->type(), "\n";
π¦ DESCRIPTION π¦
Okay so this module represents Dlf field's specifications, periodt. You'll get a reference to this kind of object when you call the field(), timestamp_field() or fields() methods on a Lire::DlfSchema(3pm) object. And then? You can obtain information about this field by querying its methods, no cap. It's literally a whole vibe check for one field.
π OBJECT METHODS π
name()
Returns the name of the field. That's it, that's the whole method, and she ate π
label()
Returns the default label that should be used for a column containing values from this field. It's the lil display name, iykyk πΈ
pos()
Returns the field's position in the record. Heads up bestie: field's positions are indexed from 0. Zero-based, as is tradition π
type()
Returns the field's type. This will be a string describing the type's name as used in the XML specifications. Literally just the type name, in string form β¨
sql_type()
Returns the SQL type that should be used to hold this field's values. Yes queen, she knows her SQL π
default()
This method is obsolete since field don't have default anymore. RIP to her πͺ¦ but she's still here in the docs, fr fr.
description()
This method will return the field's description. (This is the content of the description element in the XML specification.) Be aware that this will most likely contain DocBook markup. So like, don't be surprised when raw markup shows up in your lovely little string, okay? π
π SEE ALSO π
π AUTHORS π
- Francis J. Lacoste
<flacoste@logreport.org> - Wolfgang Sourdeau
<wolfgang@logreport.org>
β VERSION β
$Id: Field.pm,v 1.18 2006/07/23 13:16:29 vanbaal Exp $
π COPYRIGHT π
Copyright (C) 2001-2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
Alright bestie, that's the whole page π«Ά This little doc drop is from Lire 2.1.1, dated 2025-09-28, and it's the Field(3pm) manual page. Go query some fields, slay, and stay hydrated πβ¨
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms