File tree Expand file tree Collapse file tree 7 files changed +39
-20
lines changed Expand file tree Collapse file tree 7 files changed +39
-20
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on : [push]
3
+ jobs :
4
+ build :
5
+ name : CI
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/setup-go@v1
9
+ with :
10
+ go-version : " 1.14"
11
+ - uses : actions/checkout@v1
12
+ - name : Check formatting and imports via goimports
13
+ run : |
14
+ export PATH=$(go env GOPATH)/bin:$PATH
15
+ go get golang.org/x/tools/cmd/goimports
16
+ diff -u <(echo -n) <(goimports -d .)
17
+ - name : Run go vet
18
+ run : go vet -v ./...
19
+ - name : Run go test
20
+ run : go test -v ./...
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Changes
2
2
3
+ ## 4.0.0
4
+
5
+ Version 4 is identical to version 3 and just adds support for Go modules.
6
+
3
7
## 3.0.0
4
8
5
9
* Remove quoting of table and column names introduced in 2.0.0
Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2014-2016 Thomas Cyron
3
+ Copyright (c) 2014-2020 Thomas Cyron
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1
1
sqlbuilder
2
2
==========
3
3
4
- [ ![ Travis CI status] ( https://api.travis-ci.org/thcyron/sqlbuilder.svg )] ( https://travis-ci.org/thcyron/sqlbuilder )
4
+ [ ![ go.dev reference] ( https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square )] ( https://pkg.go.dev/github.com/thcyron/sqlbuilder/v4 )
5
+ [ ![ CI status] ( https://github.com/thcyron/sqlbuilder/workflows/CI/badge.svg )] ( https://github.com/thcyron/sqlbuilder/actions?query=workflow%3ACI )
5
6
6
7
` sqlbuilder ` is a Go library for building SQL queries.
7
8
8
- The latest stable version is [ 3.0.0] ( https://github.com/thcyron/sqlbuilder/tree/v3.0.0/ ) .
9
+ The latest stable version is [ 4.0.0] ( https://github.com/thcyron/sqlbuilder/tree/v4.0.0/ ) .
10
+ Version 4 is identical to version 3 with added support for Go modules.
9
11
10
12
` sqlbuilder ` follows [ Semantic Versioning] ( http://semver.org/ ) .
11
13
12
- Installation
13
- ------------
14
+ Usage
15
+ -----
14
16
15
- go get github.com/thcyron/sqlbuilder
17
+ ``` go
18
+ import " github.com/thcyron/sqlbuilder/v4"
19
+ ```
16
20
17
21
Examples
18
22
--------
@@ -82,11 +86,6 @@ Or you can specify the dialect explicitly:
82
86
sqlbuilder.Select ().Dialect (sqlbuilder.Postgres ).From (" ..." )...
83
87
```
84
88
85
- Documentation
86
- -------------
87
-
88
- Documentation is available at [ GoDoc] ( https://godoc.org/github.com/thcyron/sqlbuilder ) .
89
-
90
89
License
91
90
-------
92
91
Original file line number Diff line number Diff line change 1
1
package sqlbuilder
2
2
3
3
import (
4
- "github.com/thcyron/sqlbuilder/mysql"
5
- "github.com/thcyron/sqlbuilder/postgres"
4
+ "github.com/thcyron/sqlbuilder/v4/ mysql"
5
+ "github.com/thcyron/sqlbuilder/v4/ postgres"
6
6
)
7
7
8
8
// Dialect represents a SQL dialect.
Original file line number Diff line number Diff line change
1
+ module github.com/thcyron/sqlbuilder/v4
2
+
3
+ go 1.14
You can’t perform that action at this time.
0 commit comments