📄 recno.so
字号:
m4_comment([$Id: recno.so,v 11.11 2003/10/18 19:15:55 bostic Exp $])m4_ref_title(Access Methods, Managing record-based databases, managing @record-based databases, am_conf/h_nelem, am_conf/extentsize)m4_p([dnlWhen using fixed- or variable-length record-based databases, particularlywith flat-text backing files, there are several items that the user cancontrol. The Recno access method can be used to store either variable-or fixed-length data items. By default, the Recno access method storesvariable-length data items. The Queue access method can only storefixed-length data items.])m4_section(Record Delimiters)m4_p([dnlWhen using the Recno access method to store variable-length records,records read from any backing source file are separated by a specificbyte value which marks the end of one record and the beginning of thenext. This delimiting value is ignored except when reading records froma backing source file, that is, records may be stored into the databasethat include the delimiter byte. However, if such records are writtenout to the backing source file and the backing source file issubsequently read into a database, the records will be split wheredelimiting bytes were found.])m4_p([dnlFor example, UNIX text files can usually be interpreted as a sequence ofvariable-length records separated by ASCII newline characters. This bytevalue (ASCII 0x0a) is the default delimiter. Applications may specify adifferent delimiting byte using the m4_refT(dbh_set_re_delim). If nobacking source file is being used, there is no reason to set thedelimiting byte value.])m4_section(Record Length)m4_p([dnlWhen using the Recno or Queue access methods to store fixed-lengthrecords, the record length must be specified. Since the Queue accessmethod always uses fixed-length records, the user must always set therecord length prior to creating the database. Setting the record lengthis what causes the Recno access method to store fixed-length, notvariable-length, records.])m4_p([dnlThe length of the records is specified by calling them4_refT(dbh_set_re_len). The default length of the records is 0 bytes.Any record read from a backing source file or otherwise stored in thedatabase that is shorter than the declared length will automatically bepadded as described for the m4_refT(dbh_set_re_pad). Any record storedthat is longer than the declared length results in an error. Forfurther information on backing source files, seem4_link(M4RELDIR/ref/am_conf/re_source, Flat-text backing files).])m4_section(Record Padding Byte Value)m4_p([dnlWhen storing fixed-length records in a Queue or Recno database, a padcharacter may be specified by calling the m4_refT(dbh_set_re_pad). Anyrecord read from the backing source file or otherwise stored in thedatabase that is shorter than the expected length will automatically bepadded with this byte value. If fixed-length records are specified butno pad value is specified, a space character (0x20 in the ASCIIcharacter set) will be used. For further information on backing sourcefiles, see m4_link(M4RELDIR/ref/am_conf/re_source, Flat-text backingfiles).])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -