Esempio n. 1
0
            public ITable GetTable(int offset)
            {
                if (offset == 0)
                {
                    return(SystemSchema.GetTableInfoTable(transaction));
                }
                if (offset == 1)
                {
                    return(SystemSchema.GetTableColumnsTable(transaction));
                }
                if (offset == 2)
                {
                    return(SystemSchema.GetProductInfoTable(transaction));
                }
                if (offset == 3)
                {
                    return(SystemSchema.GetVariablesTable(transaction));
                }
                if (offset == 4)
                {
                    return(SystemSchema.GetStatisticsTable(transaction));
                }

                /*
                 * TODO:
                 * if (offset == 5)
                 *      return SystemSchema.GetSessionInfoTable(transaction);
                 */
                if (offset == 6)
                {
                    return(SystemSchema.GetOpenSessionsTable(transaction));
                }
                if (offset == 7)
                {
                    return(SystemSchema.GetSqlTypesTable(transaction));
                }
                if (offset == 8)
                {
                    return(SystemSchema.GetPrivilegesTable(transaction));
                }

                throw new ArgumentOutOfRangeException("offset");
            }
Esempio n. 2
0
 private void SetupSystem(IEnumerable <ISystemFeature> features)
 {
     SystemSchema.Setup(Database, features);
 }
Esempio n. 3
0
 private void CreateSystem(IEnumerable <ISystemFeature> features)
 {
     SystemSchema.Create(Database, features);
 }