Example #1
0
        public IngestBase(LogHandler LogObject, ODL.Common.DBConnectionDetails DbConnectionInfo, String FileName)
        {
            this.Logger   = LogObject;
            this.DataFile = new FileInfo(FileName);

            try
            {
                //Figure out which type of database we have and test the connection.
                if (DbConnectionInfo.DBType == ODL.Common.SupportedDatabases.PostgreSQL)
                {
                    this.PostgresConnection = DatabaseUtils.Postgres.ConnectToPostGRES(DbConnectionInfo);
                }
            }
            catch (Exception ex)
            {
                LogObject.LogError("Can't connect to the database with specified parameters: " + ex.Message);
            }
        }
Example #2
0
 public USCensusS0901(LogHandler LogObject, ODL.Common.DBConnectionDetails DbConnectionInfo, String FileName) : base(LogObject, DbConnectionInfo, FileName)
 {
 }
Example #3
0
 public TeacherEvaluations(LogHandler LogObject, ODL.Common.DBConnectionDetails DbConnectionInfo, String FileName) : base(LogObject, DbConnectionInfo, FileName)
 {
 }