2023-08-02 16:44:51 +00:00
|
|
|
-- Some view that act as aliases
|
2020-12-17 03:42:25 +00:00
|
|
|
-- unfortunately necessary, since diesel doesn't have self joins
|
|
|
|
-- or alias support yet
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE VIEW user_alias_1 AS
|
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
user_;
|
|
|
|
|
|
|
|
CREATE VIEW user_alias_2 AS
|
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
user_;
|
|
|
|
|
|
|
|
CREATE VIEW comment_alias_1 AS
|
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
comment;
|
2020-12-17 03:42:25 +00:00
|
|
|
|