Skip to content

Commit

Permalink
add create and insert to setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dedekind561 committed Apr 8, 2024
1 parent ec777b3 commit e905909
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/initdb.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
\c videorec;

DROP TABLE IF EXISTS videos CASCADE;

CREATE TABLE videos (
title VARCHAR,
src VARCHAR
);

INSERT INTO videos (title,src) VALUES ('Never Gonna Give You Up','https://www.youtube.com/watch?v=dQw4w9WgXcQ');
-- you can insert more rows using example data from the example_data.csv file

0 comments on commit e905909

Please sign in to comment.