• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ngageoint / geopackage-js / 4078143969

pending completion
4078143969

push

github

Christopher Caldwell
bump version

3593 of 8015 branches covered (44.83%)

Branch coverage included in aggregate %.

15102 of 20471 relevant lines covered (73.77%)

1564.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.24
/lib/db/master/sqliteMasterColumn.ts
1
/**
2
 * SQLite Master table (sqlite_master) column keywords
3
 */
4
export enum SQLiteMasterColumn {
1✔
5
  /**
6
   * The sqlite_master.type column will be one of the following text strings:
7
   * 'table', 'index', 'view', or 'trigger' according to the type of object
8
   * defined. The 'table' string is used for both ordinary and virtual tables.
9
   */
10
  TYPE,
1✔
11

12
  /**
13
   * The sqlite_master.name column will hold the name of the object.
14
   */
15
  NAME,
1✔
16

17
  /**
18
   * The sqlite_master.tbl_name column holds the name of a table or view that
19
   * the object is associated with. For a table or view, the tbl_name column
20
   * is a copy of the name column. For an index, the tbl_name is the name of
21
   * the table that is indexed. For a trigger, the tbl_name column stores the
22
   * name of the table or view that causes the trigger to fire.
23
   */
24
  TBL_NAME,
1✔
25

26
  /**
27
   * The sqlite_master.rootpage column stores the page number of the root
28
   * b-tree page for tables and indexes. For rows that define views, triggers,
29
   * and virtual tables, the rootpage column is 0 or NULL.
30
   */
31
  ROOTPAGE,
1✔
32

33
  /**
34
   * The sqlite_master.sql column stores SQL text that describes the object.
35
   * This SQL text is a CREATE TABLE, CREATE VIRTUAL TABLE, CREATE INDEX,
36
   * CREATE VIEW, or CREATE TRIGGER statement that if evaluated against the
37
   * database file when it is the main database of a database connection would
38
   * recreate the object.
39
   */
40
  SQL,
1✔
41
}
42
// eslint-disable-next-line @typescript-eslint/no-namespace
43
export namespace SQLiteMasterColumn {
1!
44
  export function nameFromType(type: SQLiteMasterColumn): string {
1✔
45
    return SQLiteMasterColumn[type];
93,961✔
46
  }
47

48
  export function fromName(type: string): SQLiteMasterColumn {
1✔
49
    return SQLiteMasterColumn[type as keyof typeof SQLiteMasterColumn] as SQLiteMasterColumn;
1✔
50
  }
51

52
  export function asArray(): SQLiteMasterColumn[] {
1✔
53
    return [
×
54
      SQLiteMasterColumn.TYPE,
55
      SQLiteMasterColumn.NAME,
56
      SQLiteMasterColumn.TBL_NAME,
57
      SQLiteMasterColumn.ROOTPAGE,
58
      SQLiteMasterColumn.SQL,
59
    ];
60
  }
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc