Esempio n. 1
0
        public static FdbRangeQuery <KeyValuePair <Slice, Slice> > GetRangeStartsWith(this IFdbReadOnlyTransaction trans, [NotNull] IFdbSubspace subspace, FdbRangeOptions options = null)
        {
            //REVIEW: should we remove this method?
            Contract.Requires(trans != null && subspace != null);

            return(trans.GetRange(subspace.ToRange(), options));
        }
Esempio n. 2
0
        /// <summary>Clear the entire content of a subspace</summary>
        public static void ClearRange(this IFdbTransaction trans, [NotNull] IFdbSubspace subspace)
        {
            Contract.Requires(trans != null && subspace != null);

            //BUGBUG: should we call subspace.ToRange() ?
            trans.ClearRange(subspace.ToRange());
        }