Documentation ¶
Overview ¶
Package dao provides abstraction of persistence layer used by pydio services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { Init(common.ConfigValues) error GetConn() Conn SetConn(Conn) 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.
Click to show internal directories.
Click to hide internal directories.