Skip to content

Commit 0ce7f21

Browse files
committed
Remove reference to Squirrel
1 parent 9987fa0 commit 0ce7f21

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Go Reference](https://pkg.go.dev/badge/github.com/networkteam/construct/v2.svg)](https://pkg.go.dev/github.com/networkteam/construct/v2)
44
[![Build status](https://github.com/networkteam/construct/actions/workflows/test.yml/badge.svg?branch=v2)](https://github.com/networkteam/construct/actions/workflows/test.yml)
5-
[![Coverage Status](https://coveralls.io/repos/github/networkteam/construct/badge.svg?branch=main)](https://coveralls.io/github/networkteam/construct?branch=main)
65
[![Coverage](https://codecov.io/gh/networkteam/construct/branch/v2/graph/badge.svg?token=Y0GHTB40GG)](https://codecov.io/gh/networkteam/construct)
76
[![Go Report Card](https://goreportcard.com/badge/github.com/networkteam/construct/v2)](https://goreportcard.com/report/github.com/networkteam/construct/v2)
87

@@ -63,8 +62,8 @@ Structure your persistence code as it fits the project. A very simple and workin
6362
functions that operator on the target type for finding, inserting, updating and deleting. Add more complex queries
6463
as you like in the same way.
6564

66-
There's no need to use Squirrel, but it helps to build correct SQL queries instead of relying on string manipulation
67-
and manually handling placeholders and arguments.
65+
Construct will automatically generate identifier expressions of fields (read columns) via [github.com/networkteam/qrb](https://github.com/networkteam/qrb)
66+
and a default `json_build_object` expression to select a model via JSON. This can be further modified to add additional properties.
6867

6968
*repository/customer_repository.go*
7069
```go

example/pgx/repository/repository_todo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414

1515
var todos = qrb.N("todos")
1616

17-
// todoBuildFindQuery creates a partial squirrel.SelectBuilder that
18-
// - selects a single JSON result by using buildTodoJson
17+
// todoBuildFindQuery creates a partial builder.SelectBuilder that
18+
// - selects a single JSON result by using todoJson()
1919
// - from the todos table
2020
// - and left join the projects for eagerly fetching the project for each todo in a single query
2121
func todoBuildFindQuery() builder.SelectBuilder {

sql.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ import "errors"
44

55
// ErrNotFound will be returned from generated scan functions if the query result was empty, but a row was scanned
66
var ErrNotFound = errors.New("record not found")
7-
8-
// RowScanner is an interface for a *sql.DB or *sql.TX or one of the Squirrel interfaces for the generated scan functions
9-
type RowScanner interface {
10-
Scan(...interface{}) error
11-
}

0 commit comments

Comments
 (0)