Documentation
¶
Index ¶
- func BulkChange(ctx context.Context, dbId string, table string)
- func Delete(ctx context.Context, dbId string, table string, pk interface{})
- func Insert(ctx context.Context, dbId string, table string, pk interface{})
- func Update(ctx context.Context, dbId string, table string, pk interface{}, ...)
- type BroadcasterI
- type DefaultBroadcaster
- func (b DefaultBroadcaster) BulkChange(ctx context.Context, dbId string, table string)
- func (b DefaultBroadcaster) Delete(ctx context.Context, dbId string, table string, pk interface{})
- func (b DefaultBroadcaster) Insert(ctx context.Context, dbId string, table string, pk interface{})
- func (b DefaultBroadcaster) Update(ctx context.Context, dbId string, table string, pk interface{}, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BroadcasterI ¶
type BroadcasterI interface {
Insert(ctx context.Context, dbId string, table string, pk interface{})
Update(ctx context.Context, dbId string, table string, pk interface{}, fieldnames ...string)
Delete(ctx context.Context, dbId string, table string, pk interface{})
BulkChange(ctx context.Context, dbId string, table string)
}
var Broadcaster BroadcasterI
Broadcaster is the injected broadcaster that the generated forms use to notify the application that the database has changed. The application will start with a default that does nothing.
type DefaultBroadcaster ¶
type DefaultBroadcaster struct {
}
DefaultBroadcaster broadcasts database changes to the application
func (DefaultBroadcaster) BulkChange ¶
func (b DefaultBroadcaster) BulkChange(ctx context.Context, dbId string, table string)
func (DefaultBroadcaster) Delete ¶
func (b DefaultBroadcaster) Delete(ctx context.Context, dbId string, table string, pk interface{})
Click to show internal directories.
Click to hide internal directories.