• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • MongoDB context options

    MongoDB context option listing

    说明

    Context options formongodb://transports.

    可选项

    $log_cmd_insertcallable

    A callback function called when inserting a document, see log_cmd_insert().

    $log_cmd_deletecallable

    A callback function called when deleting a document, see log_cmd_delete().

    $log_cmd_updatecallable

    A callback function called when updating a document, see log_cmd_update().

    $log_write_batchcallable

    A callback function called when executing a Write Batch, see log_write_batch().

    $log_replycallable

    A callback function called when reading a reply from MongoDB, see log_reply().

    $log_getmorecallable

    A callback function called when retrieving more results from a MongoDB cursor, see log_getmore().

    $log_killcursorcallable

    A callback function called executing a killcursor opcode, see log_killcursor().

    更新日志

    版本说明
    pecl/mongo 1.5.0 Added Write API Context options

    参见

    • 套接字上下文选项
    • SSL 上下文选项