sqlite3_driver.go 478 B

1234567891011121314151617181920
  1. // Copyright 2015 The Xorm Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package xorm
  5. import (
  6. "github.com/go-xorm/core"
  7. )
  8. // func init() {
  9. // core.RegisterDriver("sqlite3", &sqlite3Driver{})
  10. // }
  11. type sqlite3Driver struct {
  12. }
  13. func (p *sqlite3Driver) Parse(driverName, dataSourceName string) (*core.Uri, error) {
  14. return &core.Uri{DbType: core.SQLITE, DbName: dataSourceName}, nil
  15. }