Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

ANamespaceAccess..::..Truncate Method (String, InfoPolicy, Nullable<(Of <(<'DateTime>)>)>)

Truncates the Set

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public bool Truncate(
	string setName,
	InfoPolicy infoPolicy,
	Nullable<DateTime> before
)

Parameters

setName
Type: String
The name of the set to be truncated.
infoPolicy
Type: InfoPolicy
The InfoPolicy used for the truncate. If not provided, the default is used.
before
Type: Nullable<(Of <(<'DateTime>)>)>
A Date/time used to truncate the set. Records before this time will be truncated. The default is everything up to when this was executed (DateTime.Now).

Return Value

True if the set was truncated or false to indicate the set did not exist in the namespace.

Exceptions


ExceptionCondition
InvalidOperationExceptionThrown if the cluster is a production cluster. Can disable this by going into the connection properties.