Skip to content

Pre-release documentation

This describes Beacon 2.1.0-rc1, a release candidate. Behavior documented here may still change before the release ships, and some of it is not in any released build yet. For the current stable release, see the 2.0.2 documentation.

Views ​

sql
CREATE VIEW north_atlantic AS
    SELECT * FROM ocean_profiles
    WHERE latitude BETWEEN 0 AND 70

A view is a saved SELECT statement. It behaves like a table. It holds no data. Beacon runs the query each time that you reference the view. Beacon stores a view. It survives a restart.

Create a view ​

sql
CREATE VIEW <view_name> AS
    <select_statement>

Replace a view ​

sql
CREATE OR REPLACE VIEW <view_name> AS
    <select_statement>

Drop a view ​

sql
DROP TABLE <view_name>

INFO

DROP TABLE removes an external table and a view. There is no separate DROP VIEW statement.

Released under the AGPL-3.0 License.