fragmenta / query

An SQL query builder for golang
MIT License
41 stars 10 forks source link

Mysql adapter support #2

Closed jneto81 closed 8 years ago

jneto81 commented 8 years ago

The mysql adapter is missing because is commented

package adapters

import (
    "database/sql"
    "fmt"

    // Mysql driver
    //_ "github.com/Go-SQL-Driver/MySQL"
)

I solve the problem with

_ "github.com/go-sql-driver/mysql"

its with lowercase.

kennygrant commented 8 years ago

Thanks, I'll fix it this weekend, I also need to adjust the tests for recent API changes.

kennygrant commented 8 years ago

Thanks for letting me know about this.

Fixed driver and fixed tests for mysql (required setting &parseTime=true on init for mysql). I'm afraid I've been using almost exclusively psql for the last year, so please let me know if anything else is broken with mysql, or other tests are required.