//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // //----------------------------------------------------------------------- namespace Microsoft.Isam.Esent.Interop { /// /// Info levels for retrieving table info with JetGetTableInfo. /// public enum JET_TblInfo { /// /// Default option. Retrieves a containing /// information about the table. Use this option with /// . /// Default = 0, /// /// Retrieves the name of the table. Use this option with /// . /// Name = 1, /// /// Retrieves the of the database containing the /// table. Use this option with /// . /// Dbid = 2, /// /// The behavior of the method depends on how large the array that is passed /// to the method is. The array must have at least two entries. /// The first entry will contain the number of Owned Extents in the table. /// The second entry will contain the number of Available Extents in the table. /// If the array has more than two entries then the remaining bytes of /// the buffer will consist of an array of structures that represent a list of /// extents. This structure contains two members: the last page number in the /// extent and the number of pages in the extent. Use this option with /// . /// SpaceUsage = 7, /// /// The array passed to JetGetTableInfo must have two entries. /// The first entry will be set to the number of pages in the table. /// The second entry will be set to the target density of pages for the table. /// Use this option with /// . /// SpaceAlloc = 9, /// /// Gets the number of owned pages in the table. Use this option with /// . /// SpaceOwned = 10, /// /// Gets the number of available pages in the table. Use this option with /// . /// SpaceAvailable = 11, /// /// If the table is a derived table, the result will be filled in with the /// name of the table from which the derived table inherited its DDL. If /// the table is not a derived table, the buffer will an empty string. /// Use this option with /// . /// TemplateTableName = 12, } }