Exemple #1
0
        public async Task <NpgsqlDatabaseInfo> Load(NpgsqlConnection conn, NpgsqlTimeout timeout, bool async)
        {
            var db = new PostgresDatabaseInfo();
            await db.LoadPostgresInfo(conn, timeout, async);

            return(db);
        }
Exemple #2
0
        /// <inheritdoc />
        public async Task <NpgsqlDatabaseInfo?> Load(NpgsqlConnection conn, NpgsqlTimeout timeout, bool async)
        {
            var db = new PostgresDatabaseInfo(conn);
            await db.LoadPostgresInfo(conn, timeout, async);

            Debug.Assert(db.LongVersion != null);
            return(db);
        }