Documentation ¶
Index ¶
- type Article
- type Author
- type Bun
- func (b *Bun) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (b *Bun) CreateDatabase()
- func (b *Bun) CreateSchema()
- func (b *Bun) DropDatabase()
- func (b *Bun) FindAuthorByID(id int64) *Author
- func (b *Bun) FindAuthorsByName(name string) []*Author
- func (b *Bun) InsertArticles(as []*Article)
- func (b *Bun) InsertAuthors(as []*Author)
- func (b *Bun) RecentArticles(n int) []*Article
- type DBR
- func (p *DBR) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *DBR) CreateDatabase()
- func (p *DBR) CreateSchema()
- func (p *DBR) DropDatabase()
- func (p *DBR) FindAuthorByID(id int64) *Author
- func (p *DBR) FindAuthorsByName(name string) []*Author
- func (p *DBR) InsertArticles(as []*Article)
- func (p *DBR) InsertAuthors(as []*Author)
- func (p *DBR) RecentArticles(n int) []*Article
- type Ent
- func (e *Ent) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (e *Ent) CreateDatabase()
- func (e *Ent) CreateSchema()
- func (e *Ent) DropDatabase()
- func (e *Ent) FindAuthorByID(id int64) *Author
- func (e *Ent) FindAuthorsByName(name string) []*Author
- func (e *Ent) InsertArticles(as []*Article)
- func (e *Ent) InsertAuthors(as []*Author)
- func (e *Ent) RecentArticles(n int) []*Article
- type GoPG
- func (g *GoPG) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (g *GoPG) CreateDatabase()
- func (g *GoPG) CreateSchema()
- func (g *GoPG) DropDatabase()
- func (g *GoPG) FindAuthorByID(id int64) *Author
- func (g *GoPG) FindAuthorsByName(name string) []*Author
- func (g *GoPG) InsertArticles(as []*Article)
- func (g *GoPG) InsertAuthors(as []*Author)
- func (g *GoPG) RecentArticles(n int) []*Article
- type Gorm
- func (g *Gorm) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (g *Gorm) CreateDatabase()
- func (g *Gorm) CreateSchema()
- func (g *Gorm) DropDatabase()
- func (g *Gorm) FindAuthorByID(id int64) *Author
- func (g *Gorm) FindAuthorsByName(name string) []*Author
- func (g *Gorm) InsertArticles(as []*Article)
- func (g *Gorm) InsertAuthors(as []*Author)
- func (g *Gorm) RecentArticles(n int) []*Article
- type Implementation
- type Memory
- func (m *Memory) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (m *Memory) CreateDatabase()
- func (m *Memory) CreateSchema()
- func (m *Memory) DropDatabase()
- func (m *Memory) FindAuthorByID(id int64) *Author
- func (m *Memory) FindAuthorsByName(name string) []*Author
- func (m *Memory) InsertArticles(as []*Article)
- func (m *Memory) InsertAuthors(as []*Author)
- func (m *Memory) RecentArticles(n int) []*Article
- type Ozzo
- func (p *Ozzo) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *Ozzo) CreateDatabase()
- func (p *Ozzo) CreateSchema()
- func (p *Ozzo) DropDatabase()
- func (p *Ozzo) FindAuthorByID(id int64) *Author
- func (p *Ozzo) FindAuthorsByName(name string) []*Author
- func (p *Ozzo) InsertArticles(as []*Article)
- func (p *Ozzo) InsertAuthors(as []*Author)
- func (p *Ozzo) RecentArticles(n int) []*Article
- type PGX
- func (p *PGX) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *PGX) CreateDatabase()
- func (p *PGX) CreateSchema()
- func (p *PGX) DropDatabase()
- func (p *PGX) FindAuthorByID(id int64) *Author
- func (p *PGX) FindAuthorsByName(name string) []*Author
- func (p *PGX) InsertArticles(as []*Article)
- func (p *PGX) InsertAuthors(as []*Author)
- func (p *PGX) RecentArticles(n int) []*Article
- type PGXStdlib
- func (p *PGXStdlib) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *PGXStdlib) CreateDatabase()
- func (p *PGXStdlib) CreateSchema()
- func (p *PGXStdlib) DropDatabase()
- func (p *PGXStdlib) FindAuthorByID(id int64) *Author
- func (p *PGXStdlib) FindAuthorsByName(name string) []*Author
- func (p *PGXStdlib) InsertArticles(as []*Article)
- func (p *PGXStdlib) InsertAuthors(as []*Author)
- func (p *PGXStdlib) RecentArticles(n int) []*Article
- type PQ
- func (p *PQ) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *PQ) CreateDatabase()
- func (p *PQ) CreateSchema()
- func (p *PQ) DropDatabase()
- func (p *PQ) FindAuthorByID(id int64) *Author
- func (p *PQ) FindAuthorsByName(name string) []*Author
- func (p *PQ) InsertArticles(as []*Article)
- func (p *PQ) InsertAuthors(as []*Author)
- func (p *PQ) RecentArticles(n int) []*Article
- type SQLX
- func (p *SQLX) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *SQLX) CreateDatabase()
- func (p *SQLX) CreateSchema()
- func (p *SQLX) DropDatabase()
- func (p *SQLX) FindAuthorByID(id int64) *Author
- func (p *SQLX) FindAuthorsByName(name string) []*Author
- func (p *SQLX) InsertArticles(as []*Article)
- func (p *SQLX) InsertAuthors(as []*Author)
- func (p *SQLX) RecentArticles(n int) []*Article
- type UpperDB
- func (p *UpperDB) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (p *UpperDB) CreateDatabase()
- func (p *UpperDB) CreateSchema()
- func (p *UpperDB) DropDatabase()
- func (p *UpperDB) FindAuthorByID(id int64) *Author
- func (p *UpperDB) FindAuthorsByName(name string) []*Author
- func (p *UpperDB) InsertArticles(as []*Article)
- func (p *UpperDB) InsertAuthors(as []*Author)
- func (p *UpperDB) RecentArticles(n int) []*Article
- type Xorm
- func (x *Xorm) Connect(ds string, connLifetime time.Duration, idleConns, openConns int)
- func (x *Xorm) CreateDatabase()
- func (x *Xorm) CreateSchema()
- func (x *Xorm) DropDatabase()
- func (x *Xorm) FindAuthorByID(id int64) *Author
- func (x *Xorm) FindAuthorsByName(name string) []*Author
- func (x *Xorm) InsertArticles(as []*Article)
- func (x *Xorm) InsertAuthors(as []*Author)
- func (x *Xorm) RecentArticles(n int) []*Article
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Author ¶
type Bun ¶
type Bun struct {
// contains filtered or unexported fields
}
func (*Bun) CreateDatabase ¶
func (b *Bun) CreateDatabase()
func (*Bun) CreateSchema ¶
func (b *Bun) CreateSchema()
func (*Bun) DropDatabase ¶
func (b *Bun) DropDatabase()
func (*Bun) FindAuthorByID ¶
func (*Bun) FindAuthorsByName ¶
func (*Bun) InsertArticles ¶
func (*Bun) InsertAuthors ¶
func (*Bun) RecentArticles ¶
type DBR ¶
type DBR struct {
// contains filtered or unexported fields
}
func (*DBR) CreateDatabase ¶
func (p *DBR) CreateDatabase()
func (*DBR) CreateSchema ¶
func (p *DBR) CreateSchema()
func (*DBR) DropDatabase ¶
func (p *DBR) DropDatabase()
func (*DBR) FindAuthorByID ¶
func (*DBR) FindAuthorsByName ¶
func (*DBR) InsertArticles ¶
func (*DBR) InsertAuthors ¶
func (*DBR) RecentArticles ¶
type Ent ¶
type Ent struct {
// contains filtered or unexported fields
}
func (*Ent) CreateDatabase ¶
func (e *Ent) CreateDatabase()
func (*Ent) CreateSchema ¶
func (e *Ent) CreateSchema()
func (*Ent) DropDatabase ¶
func (e *Ent) DropDatabase()
func (*Ent) FindAuthorByID ¶
func (*Ent) FindAuthorsByName ¶
func (*Ent) InsertArticles ¶
func (*Ent) InsertAuthors ¶
func (*Ent) RecentArticles ¶
type GoPG ¶
type GoPG struct {
// contains filtered or unexported fields
}
func (*GoPG) CreateDatabase ¶
func (g *GoPG) CreateDatabase()
func (*GoPG) CreateSchema ¶
func (g *GoPG) CreateSchema()
func (*GoPG) DropDatabase ¶
func (g *GoPG) DropDatabase()
func (*GoPG) FindAuthorByID ¶
func (*GoPG) FindAuthorsByName ¶
func (*GoPG) InsertArticles ¶
func (*GoPG) InsertAuthors ¶
func (*GoPG) RecentArticles ¶
type Gorm ¶
type Gorm struct {
// contains filtered or unexported fields
}
func (*Gorm) CreateDatabase ¶
func (g *Gorm) CreateDatabase()
func (*Gorm) CreateSchema ¶
func (g *Gorm) CreateSchema()
func (*Gorm) DropDatabase ¶
func (g *Gorm) DropDatabase()
func (*Gorm) FindAuthorByID ¶
func (*Gorm) FindAuthorsByName ¶
func (*Gorm) InsertArticles ¶
func (*Gorm) InsertAuthors ¶
func (*Gorm) RecentArticles ¶
type Implementation ¶
type Memory ¶
func (*Memory) CreateDatabase ¶
func (m *Memory) CreateDatabase()
func (*Memory) CreateSchema ¶
func (m *Memory) CreateSchema()
func (*Memory) DropDatabase ¶
func (m *Memory) DropDatabase()
func (*Memory) FindAuthorByID ¶
func (*Memory) FindAuthorsByName ¶
func (*Memory) InsertArticles ¶
func (*Memory) InsertAuthors ¶
func (*Memory) RecentArticles ¶
type Ozzo ¶
type Ozzo struct {
// contains filtered or unexported fields
}
func (*Ozzo) CreateDatabase ¶
func (p *Ozzo) CreateDatabase()
func (*Ozzo) CreateSchema ¶
func (p *Ozzo) CreateSchema()
func (*Ozzo) DropDatabase ¶
func (p *Ozzo) DropDatabase()
func (*Ozzo) FindAuthorByID ¶
func (*Ozzo) FindAuthorsByName ¶
func (*Ozzo) InsertArticles ¶
func (*Ozzo) InsertAuthors ¶
func (*Ozzo) RecentArticles ¶
type PGX ¶
type PGX struct {
// contains filtered or unexported fields
}
func (*PGX) CreateDatabase ¶
func (p *PGX) CreateDatabase()
func (*PGX) CreateSchema ¶
func (p *PGX) CreateSchema()
func (*PGX) DropDatabase ¶
func (p *PGX) DropDatabase()
func (*PGX) FindAuthorByID ¶
func (*PGX) FindAuthorsByName ¶
func (*PGX) InsertArticles ¶
func (*PGX) InsertAuthors ¶
func (*PGX) RecentArticles ¶
type PGXStdlib ¶
type PGXStdlib struct {
// contains filtered or unexported fields
}
func (*PGXStdlib) CreateDatabase ¶
func (p *PGXStdlib) CreateDatabase()
func (*PGXStdlib) CreateSchema ¶
func (p *PGXStdlib) CreateSchema()
func (*PGXStdlib) DropDatabase ¶
func (p *PGXStdlib) DropDatabase()
func (*PGXStdlib) FindAuthorByID ¶
func (*PGXStdlib) FindAuthorsByName ¶
func (*PGXStdlib) InsertArticles ¶
func (*PGXStdlib) InsertAuthors ¶
func (*PGXStdlib) RecentArticles ¶
type PQ ¶
type PQ struct {
// contains filtered or unexported fields
}
func (*PQ) CreateDatabase ¶
func (p *PQ) CreateDatabase()
func (*PQ) CreateSchema ¶
func (p *PQ) CreateSchema()
func (*PQ) DropDatabase ¶
func (p *PQ) DropDatabase()
func (*PQ) FindAuthorByID ¶
func (*PQ) FindAuthorsByName ¶
func (*PQ) InsertArticles ¶
func (*PQ) InsertAuthors ¶
func (*PQ) RecentArticles ¶
type SQLX ¶
type SQLX struct {
// contains filtered or unexported fields
}
func (*SQLX) CreateDatabase ¶
func (p *SQLX) CreateDatabase()
func (*SQLX) CreateSchema ¶
func (p *SQLX) CreateSchema()
func (*SQLX) DropDatabase ¶
func (p *SQLX) DropDatabase()
func (*SQLX) FindAuthorByID ¶
func (*SQLX) FindAuthorsByName ¶
func (*SQLX) InsertArticles ¶
func (*SQLX) InsertAuthors ¶
func (*SQLX) RecentArticles ¶
type UpperDB ¶
type UpperDB struct {
// contains filtered or unexported fields
}
func (*UpperDB) CreateDatabase ¶
func (p *UpperDB) CreateDatabase()
func (*UpperDB) CreateSchema ¶
func (p *UpperDB) CreateSchema()
func (*UpperDB) DropDatabase ¶
func (p *UpperDB) DropDatabase()
func (*UpperDB) FindAuthorByID ¶
func (*UpperDB) FindAuthorsByName ¶
func (*UpperDB) InsertArticles ¶
func (*UpperDB) InsertAuthors ¶
func (*UpperDB) RecentArticles ¶
type Xorm ¶
type Xorm struct {
// contains filtered or unexported fields
}
func (*Xorm) CreateDatabase ¶
func (x *Xorm) CreateDatabase()
func (*Xorm) CreateSchema ¶
func (x *Xorm) CreateSchema()
func (*Xorm) DropDatabase ¶
func (x *Xorm) DropDatabase()
func (*Xorm) FindAuthorByID ¶
func (*Xorm) FindAuthorsByName ¶
func (*Xorm) InsertArticles ¶
func (*Xorm) InsertAuthors ¶
func (*Xorm) RecentArticles ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.