Documentation ¶
Index ¶
- type ArRethinkDb
- func (ar *ArRethinkDb) All(results interface{}, opts map[string]interface{}) error
- func (ar *ArRethinkDb) Client() *r.Session
- func (ar *ArRethinkDb) DbDelete() (err error)
- func (ar *ArRethinkDb) DbSave() error
- func (ar *ArRethinkDb) DbSearch(results interface{}) (err error)
- func (ar *ArRethinkDb) Find(id interface{}, out interface{}) error
- func (ar *ArRethinkDb) SetKey(key string)
- func (ar *ArRethinkDb) Truncate() (numRowsDeleted int, err error)
- type Migrator
- type RethinkDbMigration
- func (ar *RethinkDbMigration) AddIndex(client *r.Session, dbName string, tableName string, fields []string, ...) error
- func (*RethinkDbMigration) CreateDb(client *r.Session, dbName string) error
- func (ar *RethinkDbMigration) CreateTable(client *r.Session, dbName string, tableName string) error
- func (*RethinkDbMigration) DropDb(client *r.Session, dbName string) error
- func (ar *RethinkDbMigration) DropTable(client *r.Session, dbName string, tableName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArRethinkDb ¶
type ArRethinkDb struct { goar.ActiveRecord ID string `gorethink:"id,omitempty"` CreatedAt time.Time `gorethink:"created_at,omitempty" json:"created_at,omitempty"` UpdatedAt time.Time `gorethink:"updated_at,omitempty" json:"updated_at,omitempty"` }
func (*ArRethinkDb) All ¶
func (ar *ArRethinkDb) All(results interface{}, opts map[string]interface{}) error
func (*ArRethinkDb) Client ¶
func (ar *ArRethinkDb) Client() *r.Session
func (*ArRethinkDb) DbDelete ¶
func (ar *ArRethinkDb) DbDelete() (err error)
func (*ArRethinkDb) DbSave ¶
func (ar *ArRethinkDb) DbSave() error
func (*ArRethinkDb) DbSearch ¶
func (ar *ArRethinkDb) DbSearch(results interface{}) (err error)
func (*ArRethinkDb) Find ¶
func (ar *ArRethinkDb) Find(id interface{}, out interface{}) error
func (*ArRethinkDb) SetKey ¶
func (ar *ArRethinkDb) SetKey(key string)
func (*ArRethinkDb) Truncate ¶
func (ar *ArRethinkDb) Truncate() (numRowsDeleted int, err error)
type RethinkDbMigration ¶
type RethinkDbMigration struct {
Migrator
}
func (*RethinkDbMigration) CreateDb ¶
func (*RethinkDbMigration) CreateDb(client *r.Session, dbName string) error
func (*RethinkDbMigration) CreateTable ¶
Click to show internal directories.
Click to hide internal directories.