MCPcopy Create free account
hub / github.com/dropbox/godropbox / TestSelectSingleColumn

Method TestSelectSingleColumn

database/sqlbuilder/statement_test.go:28–36  ·  view source on GitHub ↗
(c *gc.C)

Source from the content-addressed store, hash-verified

26}
27
28func (s *StmtSuite) TestSelectSingleColumn(c *gc.C) {
29 sql, err := table1.Select(table1Col1).String("db")
30
31 c.Assert(err, gc.IsNil)
32 c.Assert(
33 sql,
34 gc.Equals,
35 "SELECT `table1`.`col1` FROM `db`.`table1`")
36}
37
38func (s *StmtSuite) TestSelectMultiColumns(c *gc.C) {
39 sql, err := table1.Select(table1Col1, table1Col2).String("db")

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
SelectMethod · 0.65

Tested by

no test coverage detected