-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
27 lines (22 loc) · 1.85 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Home on tasadurian</title>
<link>http://www.tasadurian.com/</link>
<description>Recent content in Home on tasadurian</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sat, 16 Jun 2018 00:00:00 +0000</lastBuildDate>
<atom:link href="http://www.tasadurian.com/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Bootstrap PostgreSQL using Docker</title>
<link>http://www.tasadurian.com/bootstrap-postgresql-using-docker/</link>
<pubDate>Sat, 16 Jun 2018 00:00:00 +0000</pubDate>
<guid>http://www.tasadurian.com/bootstrap-postgresql-using-docker/</guid>
<description>Docker is a great tool for local development. Today we will look at how to bootstrap an instance of PostgreSQL with sample data to make development and testing a breeze. Files can be found here.
First create a new directory for our files:
mkdir postgres-bootstrap &amp;&amp; cd postgres-bootstrap Next we will start off by creating our schema.sql file. Let&rsquo;s make a table for customers and one for orders:
CREATE USER bootstrap; CREATE DATABASE bootstrap; GRANT ALL PRIVILEGES ON DATABASE bootstrap TO bootstrap; \c bootstrap; CREATE TABLE customers ( created timestamp without time zone DEFAULT now(), id SERIAL PRIMARY KEY, email text, first_name text, last_name text ); ALTER TABLE customers OWNER TO &quot;bootstrap&quot;; CREATE TABLE orders ( created timestamp without time zone DEFAULT now(), id SERIAL PRIMARY KEY, customer_id integer, amount decimal ); ALTER TABLE orders OWNER TO &quot;bootstrap&quot;; We want to fill the database with some mock data.</description>
</item>
</channel>
</rss>