Documentation ¶
Overview ¶
Package db provides abstractions that makes it easy to interact with the ql database.
Index ¶
- type DB
- type Kind
- type QLQeryer
- func (ql QLQeryer) CreateSession(table string) Query
- func (ql QLQeryer) CreateUser(table string) Query
- func (ql QLQeryer) DeleteSession(table string) Query
- func (ql QLQeryer) FindSessionByKey(table string) Query
- func (ql QLQeryer) FindUserBy(table, field string) Query
- func (ql QLQeryer) UpdateSession(table string) Query
- type Query
- type Queryer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB extends sql.DB .
type QLQeryer ¶
type QLQeryer struct { }
QLQeryer implements the Queryer interface for ql database.
func (QLQeryer) CreateSession ¶
CreateSession retruns a Query for creating new session.
func (QLQeryer) CreateUser ¶
CreateUser creates a new user.
func (QLQeryer) DeleteSession ¶
DeleteSession deletes a session.
func (QLQeryer) FindSessionByKey ¶
FindSessionByKey returns a query for finding a session by key.
func (QLQeryer) FindUserBy ¶
FindUserBy finds a user by the speicified field.
func (QLQeryer) UpdateSession ¶
UpdateSession updaates session data.
type Queryer ¶
type Queryer interface { CreateSession(table string) Query FindSessionByKey(table string) Query UpdateSession(table string) Query DeleteSession(table string) Query CreateUser(table string) Query FindUserBy(table, field string) Query }
Queryer is an interface for alll Queries executed by the Wuxia application. The methods are few to make sure only important queries that are actually needed are represented.
Click to show internal directories.
Click to hide internal directories.