📄 re_source.so
字号:
m4_comment([$Id: re_source.so,v 10.16 2003/10/18 19:15:55 bostic Exp $])m4_ref_title(Access Methods, Flat-text backing files, @text backing files, am_conf/extentsize, am_conf/renumber)m4_p([dnlIt is possible to back any Recno database (either fixed or variablelength) with a flat-text source file. This provides fast read (andpotentially write) access to databases that are normally created andstored as flat-text files. The backing source file may be specified bycalling the m4_refT(dbh_set_re_source).])m4_p([dnlThe backing source file will be read to initialize the database. In thecase of variable length records, the records are assumed to be separatedas described for the m4_refT(dbh_set_re_delim). For example, standardUNIX byte stream files can be interpreted as a sequence of variablelength records separated by ASCII newline characters. This is thedefault.])m4_p([dnlWhen cached data would normally be written back to the underlyingdatabase file (for example, when the m4_ref(dbh_close) orm4_refT(dbh_sync)s are called), the in-memory copy of the database willbe written back to the backing source file.])m4_p([dnlThe backing source file must already exist (but may be zero-length) whenm4_ref(dbh_open) is called. By default, the backing source file is readlazily, that is, records are not read from the backing source file untilthey are requested by the application. If multiple processes (notthreads) are accessing a Recno database concurrently and eitherinserting or deleting records, the backing source file must be read inits entirety before more than a single process accesses the database,and only that process should specify the backing source file as part ofthe m4_ref(dbh_open) call. This can be accomplished by calling them4_refT(dbh_set_flags) with the m4_ref(DB_SNAPSHOT) flag.])m4_p([dnlReading and writing the backing source file cannot be transactionallyprotected because it involves filesystem operations that are not part ofthe m4_db transaction methodology. For this reason, if a temporarydatabase is used to hold the records (a NULL was specified as the fileargument to m4_ref(dbh_open)), m4_bold([it is possible to lose thecontents of the backing source file if the system crashes at the rightinstant]). If a permanent file is used to hold the database (a filenamewas specified as the file argument to m4_ref(dbh_open)), normal databaserecovery on that file can be used to prevent information loss. It isstill possible that the contents of the backing source file itself willbe corrupted or lost if the system crashes.])m4_p([dnlFor all of the above reasons, the backing source file is generally usedto specify databases that are read-only for m4_db applications, and thatare either generated on the fly by software tools, or modified using adifferent mechanism such as a text editor.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -