Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package dao provides abstraction of persistence layer used by pydio services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( DB_MYSQL_CONNECTIONS_PERCENT_PER_REQUEST = 5 DB_MYSQL_MAX_CONNECTIONS_PERCENT = 90 DB_MYSQL_IDLE_CONNECTIONS_PERCENT = 25 )
Functions ¶
Types ¶
type DAO ¶
type DAO interface {
	Init(configx.Values) error
	GetConn() Conn
	SetConn(Conn)
	CloseConn() error
	Driver() string
	// Prefix is used to prevent collision between table names
	// in case this DAO accesses a shared DB.
	Prefix() string
}
    DAO interface definition
func NewDAO ¶
NewDAO returns a reference to a newly created struct that contains the necessary information to access a database. Prefix parameter is used to specify a prefix to avoid collision between table names in case this DAO accesses a shared DB: it thus will be an empty string in most of the cases.
      
      Source Files
      ¶
    
- boltdb.go
 - conn.go
 - dao.go
 - mysql.go
 - sql.go
 - sqlite.go
 
 Click to show internal directories. 
   Click to hide internal directories.