cursor.so
来自「berkeley db 4.6.21的源码。berkeley db是一个简单的数」· SO 代码 · 共 25 行
SO
25 行
m4_comment([$Id: cursor.so,v 1.12 2004/03/05 21:47:36 bostic Exp $])m4_ref_title(m4_tam Applications, Transactional cursors,, transapp/read, transapp/nested)m4_p([dnlm4_db cursors may be used inside a transaction, exactly as any otherm4_ref(Db) method. The enclosing transaction ID must be specified whenthe cursor is created, but it does not then need to be further specifiedon operations performed using the cursor. One important point toremember is that a cursor m4_bold([must be closed]) before the enclosingtransaction is committed or aborted.])m4_p([dnlThe following code fragment uses a cursor to store a new key in the catsdatabase with four associated data items. The key is a name. The dataitems are a company name and a list of the breeds of cat owned. Eachof the data entries is stored as a duplicate data item. In thisexample, transactions are necessary to ensure that either all or noneof the data items appear in case of system or application failure.])include(ref/transapp/cursor.cs)m4_page_footer
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?