github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/go-xorm/xorm/sqlite3_driver.go (about)

     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  
     5  package xorm
     6  
     7  import (
     8  	"github.com/insionng/yougam/libraries/go-xorm/core"
     9  )
    10  
    11  // func init() {
    12  // 	core.RegisterDriver("sqlite3", &sqlite3Driver{})
    13  // }
    14  
    15  type sqlite3Driver struct {
    16  }
    17  
    18  func (p *sqlite3Driver) Parse(driverName, dataSourceName string) (*core.Uri, error) {
    19  	return &core.Uri{DbType: core.SQLITE, DbName: dataSourceName}, nil
    20  }