From 615cee463dc52c8dfa4818d4b18d77c609ea89bf Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Mon, 27 Jan 2025 11:53:49 -0500 Subject: [PATCH] code egs --- source/includes/run-command.kt | 4 ++++ source/run-command.txt | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/source/includes/run-command.kt b/source/includes/run-command.kt index 5708e69..080d93e 100644 --- a/source/includes/run-command.kt +++ b/source/includes/run-command.kt @@ -16,4 +16,8 @@ fun main() { val commandResult = database.runCommand(command, readPreference) //end-read-preference + + //start-build-info + println( db.runCommand( { buildInfo: 1 } ) ); + //end-build-info } \ No newline at end of file diff --git a/source/run-command.txt b/source/run-command.txt index 9f8a0fe..2b20e0d 100644 --- a/source/run-command.txt +++ b/source/run-command.txt @@ -72,7 +72,7 @@ For more information on read preference options, see :manual:`Read Preference .. note:: - The ``command()`` method ignores the read preference setting you may have set + The ``runCommand()`` method ignores the read preference setting you may have set on your ``database`` object. If no read preference is specified, this method uses the ``primary`` read preference. @@ -124,10 +124,11 @@ The following code shows the general output format of the ``buildInfo`` command: .. io-code-block:: - .. input:: + .. input:: /includes/run-command.kt + :start-after: start-build-info + :end-before: end-build-info :language: kotlin - - db.runCommand( { buildInfo: 1 } ); + :dedent: .. output:: :visible: false