description varchar(500),
link varchar(200)
);
-BEGIN TRANSACTION;
DELETE FROM html_attribute;
+BEGIN;
COPY html_attribute (link,name,description) FROM PROGRAM '. /etc/profile && \
http_get https://html.com/attributes/ | \
sed -E "s,<(thrive_headline|header)[^.>]+>([^<]+)</\1>,<div>\2</div>," | \
xmllint --html --xpath //table - 2>/dev/null | \
xml2csv - | \
sed -E \
- -e "s/”/\"/g" -e "s,^[^<]+(<[^>]+>)[^\t]+,\L\1," \
- -e "s,^(<([^ ]+) ([^=>]+)),https://html.com/attributes/\2-\3/\t\1," \
-' WITH (format 'text', NULL '');
+ -e "s/”/\"/g" -e "s,^[^<]+(<[^>]+>)[^\t]+,\L\1," \
+ -e "s,^(<([^ ]+) ([^=>]+)),https://html.com/attributes/\2-\3/\t\1," \
+' WITH (format 'text', NULL '');
COMMIT;
-
--- /dev/null
+DROP TABLE IF EXISTS html_width;
+CREATE TABLE IF NOT EXISTS html_width (
+ px smallint PRIMARY KEY,
+ name varchar(50)
+);
+BEGIN TRANSACTION;
+DELETE FROM html_width;
+COPY html_width FROM STDIN WITH (format 'text', NULL '');
+320 Mobile portrait
+480 Mobile landscape
+600 Small tablet
+768 Tablet portrait
+1024 Tablet landscape/Netbook
+1280 Desktop
+\.
+COMMIT;