示例#1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="options">Options to configure database.</param>
 /// <param name="compare">Key comparison function.</param>
 public DatabaseConfiguration(DatabaseOptions options, SpanComparison <byte> compare = null)
 {
     this.Options = options;
     this.Compare = compare;
     if (compare != null)
     {
         this.LibCompare = CompareWrapper;
     }
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="options">Options to configure database.</param>
 /// <param name="compare">Key compare function.</param>
 /// <param name="dupOptions">Options to configure multi-value database.</param>
 /// <param name="dupCompare">Duplicate (by key) data compare function.</param>
 public MultiValueDatabaseConfiguration(
     DatabaseOptions options,
     SpanComparison <byte> compare        = null,
     MultiValueDatabaseOptions dupOptions = MultiValueDatabaseOptions.None,
     SpanComparison <byte> dupCompare     = null
     ) : base(options, compare)
 {
     this.DupOptions = dupOptions;
     this.DupCompare = dupCompare;
     if (dupCompare != null)
     {
         this.LibDupCompare = DupCompareWrapper;
     }
 }
示例#3
0
 public static extern DbRetCode mdb_set_dupsort(IntPtr txn, uint dbi, DbLibCompareFunction cmp);