~nilium/sql

0eb4a8bb965fb3eb0d99f7cd138e665aa322c3c0 — Noel Cower 9 months ago fadac08
Move drivers to top-level package

Move the drivers to the top-level package so they can be reused.
8 files changed, 7 insertions(+), 7 deletions(-)

R internal/driver/dsn.go => driver/dsn.go
M driver_mysql.go
M driver_postgres.go
M driver_sqlite.go
M main.go
R internal/mysql/mysql.go => mysql/mysql.go
R internal/postgres/postgres.go => postgres/postgres.go
R internal/sqlite/sqlite.go => sqlite/sqlite.go
R internal/driver/dsn.go => driver/dsn.go +0 -0
M driver_mysql.go => driver_mysql.go +1 -1
@@ 19,5 19,5 @@
package main

import (
	_ "go.spiff.io/sql/internal/mysql"
	_ "go.spiff.io/sql/mysql"
)

M driver_postgres.go => driver_postgres.go +1 -1
@@ 19,5 19,5 @@
package main

import (
	_ "go.spiff.io/sql/internal/postgres"
	_ "go.spiff.io/sql/postgres"
)

M driver_sqlite.go => driver_sqlite.go +1 -1
@@ 19,5 19,5 @@
package main

import (
	_ "go.spiff.io/sql/internal/sqlite"
	_ "go.spiff.io/sql/sqlite"
)

M main.go => main.go +1 -1
@@ 38,8 38,8 @@ import (
	"github.com/adrg/xdg"
	"github.com/google/shlex"
	"go.spiff.io/go-ini"
	"go.spiff.io/sql/driver"
	"go.spiff.io/sql/internal/cli"
	"go.spiff.io/sql/internal/driver"
	"go.spiff.io/sql/vdb"
)


R internal/mysql/mysql.go => mysql/mysql.go +1 -1
@@ 31,7 31,7 @@ import (

	"github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
	sqld "go.spiff.io/sql/internal/driver"
	sqld "go.spiff.io/sql/driver"
)

func init() {

R internal/postgres/postgres.go => postgres/postgres.go +1 -1
@@ 21,7 21,7 @@ import (

	"github.com/jmoiron/sqlx"
	_ "github.com/lib/pq"
	"go.spiff.io/sql/internal/driver"
	"go.spiff.io/sql/driver"
)

func init() {

R internal/sqlite/sqlite.go => sqlite/sqlite.go +1 -1
@@ 23,7 23,7 @@ import (

	"github.com/jmoiron/sqlx"
	_ "github.com/mattn/go-sqlite3"
	"go.spiff.io/sql/internal/driver"
	"go.spiff.io/sql/driver"
)

func init() {