Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 604 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 604 Bytes

PostgreSQL Database

  • This repo uses PostgreSQL as Database server
  • Follow these guide for simple database setup, or look into this cheatsheet for more info

Download and setup PostgreSQL

Initialize database

  • Connect to PostgreSQL server:
psql -U <username>;
  • Create database:
create database <tablename>;
  • Create table:
\c <tablename> # connect to database
create table waterlevel;
  • Check if table exists:
\dt