func Open(dsn string) (*Adapter, error) {
	var err error
	adapter := &Adapter{
		Adapter: &sql.Adapter{
			Config: &sql.Config{
				Placeholder:         "?",
				EscapeChar:          "`",
				InsertDefaultValues: true,
				IncrementFunc:       incrementFunc,
				ErrorFunc:           errorFunc,
			},
		},
	}
	adapter.DB, err = db.Open("sqlite3", dsn)
	return adapter, err
}
Open mysql connection using dsn.
package sqlite3
import (
	db "database/sql"
	"strings"
	"github.com/Fs02/grimoire"
	"github.com/Fs02/grimoire/adapter/sql"
	"github.com/Fs02/grimoire/errors"
	"github.com/mattn/go-sqlite3"
)
type Adapter struct {
	*sql.Adapter
}
var _ grimoire.Adapter = (*Adapter)(nil)