Skip to content

Commit 7cf955e

Browse files
committed
Release version 4 with support for Go modules
1 parent 67dfbd4 commit 7cf955e

File tree

7 files changed

+39
-20
lines changed

7 files changed

+39
-20
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 ./...

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
## 4.0.0
4+
5+
Version 4 is identical to version 3 and just adds support for Go modules.
6+
37
## 3.0.0
48

59
* Remove quoting of table and column names introduced in 2.0.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2016 Thomas Cyron
3+
Copyright (c) 2014-2020 Thomas Cyron
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
sqlbuilder
22
==========
33

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)
56

67
`sqlbuilder` is a Go library for building SQL queries.
78

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.
911

1012
`sqlbuilder` follows [Semantic Versioning](http://semver.org/).
1113

12-
Installation
13-
------------
14+
Usage
15+
-----
1416

15-
go get github.com/thcyron/sqlbuilder
17+
```go
18+
import "github.com/thcyron/sqlbuilder/v4"
19+
```
1620

1721
Examples
1822
--------
@@ -82,11 +86,6 @@ Or you can specify the dialect explicitly:
8286
sqlbuilder.Select().Dialect(sqlbuilder.Postgres).From("...")...
8387
```
8488

85-
Documentation
86-
-------------
87-
88-
Documentation is available at [GoDoc](https://godoc.org/github.com/thcyron/sqlbuilder).
89-
9089
License
9190
-------
9291

dialect.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package sqlbuilder
22

33
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"
66
)
77

88
// Dialect represents a SQL dialect.

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/thcyron/sqlbuilder/v4
2+
3+
go 1.14

0 commit comments

Comments
 (0)