File: views.sql

package info (click to toggle)
monotone 0.18-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 16,440 kB
  • ctags: 13,394
  • sloc: sh: 130,618; ansic: 70,657; cpp: 51,980; perl: 421; makefile: 359; python: 184; lisp: 132; sql: 83
file content (13 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
-- view-schema for the sql database. this file is converted into a
-- string constant, as the symbol:
-- 
-- char const views_constant[...] = { ... };
--
-- and emitted as views.h at compile time. it is used by
-- database.cc when opening an sqlite db.
--
-- views have no structural affect on the database, so we delete and
-- rebuild them every time we open the db (along with adding the
-- functions we're interested in). the schema migration is thus 
-- never concerned with changes to views.