Class TransactionConfig
Configuration object containing settings for explicit and auto-commit transactions. Leave the fields unmodified to use server side transaction configurations.
public sealed class TransactionConfig
- Inheritance
-
TransactionConfig
- Inherited Members
- Extension Methods
Properties
- Metadata
The transaction metadata. Specified metadata will be attached to the executing transaction and visible in the output of
anddbms.listQueries
procedures. It will also get logged to thedbms.listTransactions
. Transactions starting with this TransactionConfig This functionality makes it easier to tag transactions and is equivalent toquery.log
procedure. Leave this field unmodified to use default timeout configured on database.dbms.setTXMetaData
- Timeout
Transaction timeout. Transactions that execute longer than the configured timeout will be terminated by the database. This functionality allows user code to limit query/transaction execution time. The specified timeout overrides the default timeout configured in the database using the
setting (db.transaction.timeout
before Neo4j 5.0). Values higher thandbms.transaction.timeout
will bedb.transaction.timeout
ignored and will fall back to the default for server versions between 4.2 and 5.2 (inclusive). Leave this field unmodified or set it to
to use the default timeout configured on the server. A timeout of zero will make the transaction execute indefinitely.null
Methods
- ToString()
Returns the config content in a nice string representation.