Documentation
¶
Index ¶
- type MongoDB
- func (t *MongoDB) Count(ctx context.Context, query interface{}, args ...interface{}) int64
- func (t *MongoDB) Delete(ctx context.Context, query interface{}, args ...interface{}) int64
- func (t *MongoDB) Exec(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *MongoDB) Exists(ctx context.Context, query interface{}, args ...interface{}) bool
- func (t *MongoDB) Find(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *MongoDB) FindOne(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *MongoDB) GetDb() interface{}
- func (t *MongoDB) Init(app interfaces.IService) error
- func (t *MongoDB) Stop() error
- func (t *MongoDB) String() string
- func (t *MongoDB) Update(ctx context.Context, query interface{}, args ...interface{}) error
- type Postgres
- func (t *Postgres) Count(ctx context.Context, query interface{}, args ...interface{}) int64
- func (t *Postgres) Delete(ctx context.Context, query interface{}, args ...interface{}) int64
- func (t *Postgres) Exec(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Postgres) Exists(ctx context.Context, query interface{}, args ...interface{}) bool
- func (t *Postgres) Find(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Postgres) FindOne(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Postgres) GetDb() interface{}
- func (t *Postgres) Init(app interfaces.IService) error
- func (t *Postgres) Stop() error
- func (t *Postgres) String() string
- func (t *Postgres) Update(ctx context.Context, query interface{}, args ...interface{}) error
- type Sqlite3
- func (t *Sqlite3) Count(ctx context.Context, query interface{}, args ...interface{}) int64
- func (t *Sqlite3) Delete(ctx context.Context, query interface{}, args ...interface{}) int64
- func (t *Sqlite3) Exec(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Sqlite3) Exists(ctx context.Context, query interface{}, args ...interface{}) bool
- func (t *Sqlite3) Find(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Sqlite3) FindOne(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Sqlite3) GetDb() interface{}
- func (t *Sqlite3) Init(app interfaces.IService) error
- func (t *Sqlite3) Stop() error
- func (t *Sqlite3) String() string
- func (t *Sqlite3) Update(ctx context.Context, query interface{}, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
Name string
Database string
Options *options.ClientOptions
// contains filtered or unexported fields
}
type Postgres ¶
type Postgres struct {
Name string
Database string
URI string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.