Browse Source

Corrected the PSQL notes

master 20201013
Julio Biason 4 years ago
parent
commit
6121c6ac29
  1. 1
      config.toml
  2. 30
      content/research/psql.md
  3. 10
      content/research/psql/show-database.md
  4. 10
      content/research/psql/show-schemas.md
  5. 10
      content/research/psql/show-tables.md
  6. 10
      content/research/psql/use-database.md

1
config.toml

@ -47,6 +47,7 @@ menu_items = [
{url = "$BASE_URL/tags", name = "Tags (EN)"},
{url = "$BASE_URL/pt/tags", name = "Tags (PT)"},
{url = "$BASE_URL/quotes", name = "Quotes"},
{url = "$BASE_URL/research", name = "Research Notes"},
]
after_dark_title = "JulioBiason.Net 4.1"
enable_post_view_navigation = false

30
content/research/psql.md

@ -1,9 +1,31 @@
+++
title = "psql"
weight = 112
[taxonomies]
tags = ["research", "postgresql", "psql", "database", "schema", "table"]
+++
- [Show databases](@/research/psql/show-database.md)
- [Use database](@/research/psql/use-database.md)
- [Show schemas](@/research/psql/show-schemas.md)
- [Show tables](@/research/psql/show-tables.md)
## Show Database
```
\l
```
## Use Database
```
\c [database_name]
```
## Show Schemas
```
\dn
```
## Show Tables
```
\dt
```

10
content/research/psql/show-database.md

@ -1,10 +0,0 @@
+++
title = "PSQL: Show database"
[taxonomies]
tags = ["research", "postgresql", "psql", "database"]
+++
```
\dt
```

10
content/research/psql/show-schemas.md

@ -1,10 +0,0 @@
+++
title = "PSQL: Show Schemas"
[taxonomies]
tags = ["research", "postgresql", "psql", "schemas"]
+++
```
\dn
```

10
content/research/psql/show-tables.md

@ -1,10 +0,0 @@
+++
title = "PSQL: Show Tables"
[taxonomies]
tags = ["research", "postgresql", "psql", "tables"]
+++
```
\dt
```

10
content/research/psql/use-database.md

@ -1,10 +0,0 @@
+++
title = "PSQL: Use Database"
[taxonomies]
tags = ["research", "postgresql", "psql", "database"]
+++
```
\c [database_name]
```
Loading…
Cancel
Save