conn.go ×8

Frontier kind: Code frontier

unlabeled · c_69f7620d9025

18 tests · 2309 LOC · 113 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
368 ranges2309 lines · 113 files · Browse complete extent
All tests (intent)
18 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 20 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/tools/sql/conn.go 20 introduced LOC · 8 ranges

Open complete file

37
38 // CreateSchemaVersionTables sets up the schema version tables
39 > func (c *Connection) CreateSchemaVersionTables() error { conn.go
40 > return c.adminDb.CreateSchemaVersionTables()
41 > }
42
43 // ReadSchemaVersion returns the current schema version for the keyspace
44 > func (c *Connection) ReadSchemaVersion() (string, error) { conn.go
45 > return c.adminDb.ReadSchemaVersion(c.dbName)
46 > }
47
48 // UpdateSchemaVersion updates the schema version for the keyspace
49 > func (c *Connection) UpdateSchemaVersion(newVersion string, minCompatibleVersion string) error { conn.go
50 > return c.adminDb.UpdateSchemaVersion(c.dbName, newVersion, minCompatibleVersion)
51 > }
52
53 // WriteSchemaUpdateLog adds an entry to the schema update history table
54 > func (c *Connection) WriteSchemaUpdateLog(oldVersion string, newVersion string, manifestMD5 string, desc string) error { conn.go
55 > return c.adminDb.WriteSchemaUpdateLog(oldVersion, newVersion, manifestMD5, desc)
56 > }
57
58 // Exec executes a sql statement
62
63 // ListTables returns a list of tables in this database
64 > func (c *Connection) ListTables() ([]string, error) { conn.go
65 > return c.adminDb.ListTables(c.dbName)
66 > }
67
68 // DropTable drops a given table from the database
72
73 // DropAllTables drops all tables from this database
74 > func (c *Connection) DropAllTables() error { conn.go
75 > tables, err := c.ListTables()
76 > if err != nil {
77 return err
78 }
79 > for _, tab := range tables { conn.go
80 if err := c.DropTable(tab); err != nil {
81 return err
82 }
83 }
84 > return nil conn.go
85 }
86