You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
478 B

  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. }