Update postgresql roadmap

pull/3832/head
Kamran Ahmed 2 years ago
parent 855ba7bbfb
commit e2062aefe9
  1. 4
      src/components/OpenSourceBanner.astro
  2. 1
      src/data/roadmaps/mongodb/mongodb.md
  3. 5
      src/data/roadmaps/postgresql-dba/postgresql-dba.md
  4. 23
      src/lib/discord.ts

@ -30,12 +30,12 @@ const starCount = await getFormattedStars('kamranahmedse/developer-roadmap');
</a> </a>
<a <a
href='https://discord.gg/cJpEt5Qbwa' href="https://discord.gg/cJpEt5Qbwa"
target='_blank' target='_blank'
class='relative pointer inline-flex items-center border border-black py-1.5 px-3 rounded-lg text-sm hover:text-white hover:bg-black bg-white group' class='relative pointer inline-flex items-center border border-black py-1.5 px-3 rounded-lg text-sm hover:text-white hover:bg-black bg-white group'
> >
<Icon icon='discord' class='h-[14px] mr-2 -ml-1 fill-current' /> <Icon icon='discord' class='h-[14px] mr-2 -ml-1 fill-current' />
Join on Discord <span class="rounded-sm ml-0.5 px-1.5 py-0.5 text-xs uppercase">/ New</span> Join on Discord
</a> </a>
</div> </div>
</div> </div>

@ -41,6 +41,7 @@ seo:
- 'mongodb quiz' - 'mongodb quiz'
- 'mongodb interview questions' - 'mongodb interview questions'
relatedRoadmaps: relatedRoadmaps:
- 'postgresql-dba'
- 'backend' - 'backend'
- 'nodejs' - 'nodejs'
- 'system-design' - 'system-design'

@ -2,7 +2,7 @@
jsonUrl: '/jsons/roadmaps/postgresql-dba.json' jsonUrl: '/jsons/roadmaps/postgresql-dba.json'
pdfUrl: '/pdfs/roadmaps/postgresql-dba.pdf' pdfUrl: '/pdfs/roadmaps/postgresql-dba.pdf'
order: 5 order: 5
briefTitle: 'DBA' briefTitle: 'PostgreSQL'
briefDescription: 'Step by step guide to become a PostgreSQL DBA in 2023' briefDescription: 'Step by step guide to become a PostgreSQL DBA in 2023'
title: 'PostgreSQL DBA' title: 'PostgreSQL DBA'
description: 'Step by step guide to becoming a modern PostgreSQL DB Administrator in 2023' description: 'Step by step guide to becoming a modern PostgreSQL DB Administrator in 2023'
@ -33,6 +33,7 @@ seo:
- 'database administrator quiz' - 'database administrator quiz'
- 'dba interview questions' - 'dba interview questions'
relatedRoadmaps: relatedRoadmaps:
- 'mongodb'
- 'backend' - 'backend'
- 'devops' - 'devops'
sitemap: sitemap:
@ -251,4 +252,4 @@ Get involved to Postgres community and contribute to Postgres; be a useful membe
- pgsql-hackers - pgsql-hackers
- pgsql-bugs - pgsql-bugs
- Reviewing patches - Reviewing patches
- Writing patches, attending in [Commitfests](https://commitfest.postgresql.org/) - Writing patches, attending in [Commitfests](https://commitfest.postgresql.org/)

@ -0,0 +1,23 @@
const formatter = Intl.NumberFormat('en-US', {
notation: 'compact',
});
export async function getDiscordInfo(): Promise<{
url: string;
total: number;
totalFormatted: string;
online: number;
onlineFormatted: string;
}> {
const response = await fetch(
'https://discord.com/api/v9/invites/cJpEt5Qbwa?with_counts=true'
);
const json = await response.json();
return {
url: `https://discord.gg/${json.code}`,
total: json.approximate_member_count,
totalFormatted: formatter.format(json.approximate_member_count),
online: json.approximate_presence_count,
onlineFormatted: formatter.format(json.approximate_presence_count),
};
}
Loading…
Cancel
Save