MCPcopy Index your code
hub / github.com/Masterminds/squirrel / TestSelectWithRemoveOffset

Function TestSelectWithRemoveOffset

select_test.go:205–210  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

203}
204
205func TestSelectWithRemoveOffset(t *testing.T) {
206 sql, _, err := Select("*").From("foo").Offset(10).RemoveOffset().ToSql()
207
208 assert.NoError(t, err)
209 assert.Equal(t, "SELECT * FROM foo", sql)
210}
211
212func TestSelectBuilderNestedSelectDollar(t *testing.T) {
213 nestedBuilder := StatementBuilder.PlaceholderFormat(Dollar).Select("*").Prefix("NOT EXISTS (").

Callers

nothing calls this directly

Calls 5

SelectFunction · 0.85
RemoveOffsetMethod · 0.80
ToSqlMethod · 0.65
OffsetMethod · 0.45
FromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…