@@ -2,10 +2,92 @@
3### Version 0.3.0.0 - June 23, 2018
3### Version 0.3.0.0 - June 23, 2018
5−**Changes**
5+Version 0.3 of Squeal adds views as well as composite and enumerated types to Squeal.
6−- **Views** - Create, drop and query views
6+To support these features, a new kind `SchemumType` was added.
7−- **Enums, Composites** - Create, drop and marshal enumerated and composite types
7+
8−- **Bugfixes**
8+```Haskell
15+As a consequence, you will have to update your schema definitions like so:
21+ '[ "pk_users" ::: 'PrimaryKey '["id"] ] :=>
22+ '[ "id" ::: 'Def :=> 'NotNull 'PGint4
23+ , "name" ::: 'NoDef :=> 'NotNull 'PGtext
29+ '[ "users" ::: 'Table (
30+ '[ "pk_users" ::: 'PrimaryKey '["id"] ] :=>
31+ '[ "id" ::: 'Def :=> 'NotNull 'PGint4
32+ , "name" ::: 'NoDef :=> 'NotNull 'PGtext
39+You can now create, drop, and query views.
44+ ('[] :: TableConstraints) :=>
45+ '[ "a" ::: 'NoDef :=> 'Null 'PGint4
46+ , "b" ::: 'NoDef :=> 'Null 'PGint4
47+ , "c" ::: 'NoDef :=> 'Null 'PGint4
50+ '[ "b" ::: 'Null 'PGint4
51+ , "c" ::: 'Null 'PGint4
57+ definition :: Definition
58+ '[ "abc" ::: 'Table ABC ]
59+ '[ "abc" ::: 'Table ABC
63+ createView #bc (select (#b :* #c :* Nil) (from (table #abc)))
64+in printSQL definition
66+CREATE VIEW "bc" AS SELECT "b" AS "b", "c" AS "c" FROM "abc" AS "abc";
70+ definition :: Definition
71+ '[ "abc" ::: 'Table ABC
74+ '[ "abc" ::: 'Table ABC ]
75+ definition = dropView #bc
76+in printSQL definition
83+ '[ "abc" ::: 'Table ABC
86+ query = selectStar (from (view #bc))
89+SELECT * FROM "bc" AS "bc"
10### Version 0.2.1 - April 7, 2018
92### Version 0.2.1 - April 7, 2018