summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands_test_example.idl
blob: 09b9c06d06ed1493f8611401eb0ca5d738df0576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (C) 2018 MongoDB Inc.
#
# This program is free software: you can redistribute it and/or  modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Specifies the BSON format for the example TypedCommand used in commands_test.cpp.

global:
  cpp_namespace: "mongo::commands_test_example"

imports:
  - "mongo/idl/basic_types.idl"

commands:
  exampleIncrement:
    description: "increment an integer (TypedCommand example)"
    namespace: concatenate_with_db
    fields:
      i: int
  exampleVoid:
    description: "no return, just side effects"
    namespace: concatenate_with_db
    fields:
      i: int
  exampleMinimal:
    description: "like exampleIncrement, but use MinimalInvocationBase"
    namespace: concatenate_with_db
    fields:
      i: int

structs:
  exampleIncrementReply:
    description: "reply to exampleIncrement"
    fields:
      iPlusOne: int