From 144c7188041c1adf0dd7d6d03a87fd7ecfde9a2d Mon Sep 17 00:00:00 2001
From: Peter Kieltyka <peter.kieltyka@pressly.com>
Date: Wed, 29 Jun 2016 12:08:35 -0400
Subject: [PATCH] Minor style updates

---
 config.go | 4 ----
 db.go     | 8 +++++---
 2 files changed, 5 insertions(+), 7 deletions(-)
 delete mode 100644 config.go

diff --git a/config.go b/config.go
deleted file mode 100644
index 09d74a84..00000000
--- a/config.go
+++ /dev/null
@@ -1,4 +0,0 @@
-package db
-
-// Debug is a variable that, when true, enables query printing.
-var Debug = false
diff --git a/db.go b/db.go
index 91d24ea6..7e9ea946 100644
--- a/db.go
+++ b/db.go
@@ -104,7 +104,7 @@ type CompoundOperator uint
 
 // Compound operators.
 const (
-	OperatorNone = CompoundOperator(iota)
+	OperatorNone CompoundOperator = iota
 	OperatorAnd
 	OperatorOr
 )
@@ -424,7 +424,6 @@ type Tx interface {
 
 // Collection is an interface that defines methods useful for handling tables.
 type Collection interface {
-
 	// Insert inserts a new item into the collection, it accepts a map or a
 	// struct as argument and returns the ID of the newly added element. The type
 	// of this ID depends on the database adapter. The ID returned by Insert()
@@ -432,7 +431,7 @@ type Collection interface {
 	Insert(interface{}) (interface{}, error)
 
 	// InsertReturning is like Insert() but it updates the passed pointer to map
-	// or struct with the newly inserted element. This is all done atomically
+	// or struct with the newly inserted element. This is all done automically
 	// within a transaction. If the database does not support transactions this
 	// method returns db.ErrUnsupported.
 	InsertReturning(interface{}) error
@@ -540,6 +539,9 @@ type ConnectionURL interface {
 //	UPPERIO_DB_DEBUG=1 ./go-program
 const EnvEnableDebug = `UPPERIO_DB_DEBUG`
 
+// Debug is a variable that, when true, enables query printing.
+var Debug = false
+
 var (
 	_ = Function(&dbFunc{})
 	_ = Constraints(Cond{})
-- 
GitLab