File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
include/typedb/connection Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,12 @@ Checks whether this connection is presently open.
124
124
.Returns
125
125
`bool`
126
126
127
- [#_Session_TypeDBDriversession___const_stdstring__database__SessionType_sessionType__const_Options__options_ ]
127
+ [#_Session_TypeDBDriversession___const_stdstring__database__SessionType_sessionType__const_Options__options__Options___ ]
128
128
==== session
129
129
130
130
[source,cpp]
131
131
----
132
- Session TypeDB::Driver::session(const std::string& database, SessionType sessionType, const Options& options)
132
+ Session TypeDB::Driver::session(const std::string& database, SessionType sessionType, const Options& options = Options() )
133
133
----
134
134
135
135
Original file line number Diff line number Diff line change @@ -111,12 +111,12 @@ a| `function` a| The callback function. a|
111
111
.Returns
112
112
`void`
113
113
114
- [#_Transaction_TypeDBSessiontransaction___TransactionType_type__const_Options__options___const ]
114
+ [#_Transaction_TypeDBSessiontransaction___TransactionType_type__const_Options__options__Options_____const ]
115
115
==== transaction
116
116
117
117
[source,cpp]
118
118
----
119
- Transaction TypeDB::Session::transaction(TransactionType type, const Options& options) const
119
+ Transaction TypeDB::Session::transaction(TransactionType type, const Options& options = Options() ) const
120
120
----
121
121
122
122
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class Driver {
130
130
* @param type The type of session to be created (DATA or SCHEMA)
131
131
* @param options <code>TypeDBOptions</code> for the session
132
132
*/
133
- Session session (const std::string& database, SessionType sessionType, const Options& options);
133
+ Session session (const std::string& database, SessionType sessionType, const Options& options = Options() );
134
134
135
135
/* *
136
136
* Returns the logged-in user for the connection. Only for TypeDB Cloud.
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class Session {
98
98
* @param type The type of transaction to be created (READ or WRITE)
99
99
* @param options Options for the session
100
100
*/
101
- Transaction transaction (TransactionType type, const Options& options) const ;
101
+ Transaction transaction (TransactionType type, const Options& options = Options() ) const ;
102
102
103
103
/* *
104
104
* Registers a callback function which will be executed when this session is closed.
You can’t perform that action at this time.
0 commit comments