Skip to content

Commit

Permalink
Release version 4 with support for Go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
thcyron committed May 2, 2020
1 parent 67dfbd4 commit 7cf955e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 20 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on: [push]
jobs:
build:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v1
with:
go-version: "1.14"
- uses: actions/checkout@v1
- name: Check formatting and imports via goimports
run: |
export PATH=$(go env GOPATH)/bin:$PATH
go get golang.org/x/tools/cmd/goimports
diff -u <(echo -n) <(goimports -d .)
- name: Run go vet
run: go vet -v ./...
- name: Run go test
run: go test -v ./...
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## 4.0.0

Version 4 is identical to version 3 and just adds support for Go modules.

## 3.0.0

* Remove quoting of table and column names introduced in 2.0.0
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2016 Thomas Cyron
Copyright (c) 2014-2020 Thomas Cyron

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
sqlbuilder
==========

[![Travis CI status](https://api.travis-ci.org/thcyron/sqlbuilder.svg)](https://travis-ci.org/thcyron/sqlbuilder)
[![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)
[![CI status](https://github.com/thcyron/sqlbuilder/workflows/CI/badge.svg)](https://github.com/thcyron/sqlbuilder/actions?query=workflow%3ACI)

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

The latest stable version is [3.0.0](https://github.com/thcyron/sqlbuilder/tree/v3.0.0/).
The latest stable version is [4.0.0](https://github.com/thcyron/sqlbuilder/tree/v4.0.0/).
Version 4 is identical to version 3 with added support for Go modules.

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

Installation
------------
Usage
-----

go get github.com/thcyron/sqlbuilder
```go
import "github.com/thcyron/sqlbuilder/v4"
```

Examples
--------
Expand Down Expand Up @@ -82,11 +86,6 @@ Or you can specify the dialect explicitly:
sqlbuilder.Select().Dialect(sqlbuilder.Postgres).From("...")...
```

Documentation
-------------

Documentation is available at [GoDoc](https://godoc.org/github.com/thcyron/sqlbuilder).

License
-------

Expand Down
4 changes: 2 additions & 2 deletions dialect.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package sqlbuilder

import (
"github.com/thcyron/sqlbuilder/mysql"
"github.com/thcyron/sqlbuilder/postgres"
"github.com/thcyron/sqlbuilder/v4/mysql"
"github.com/thcyron/sqlbuilder/v4/postgres"
)

// Dialect represents a SQL dialect.
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/thcyron/sqlbuilder/v4

go 1.14

0 comments on commit 7cf955e

Please sign in to comment.