Documentation
¶
Index ¶
- type NewStoreOptions
- type SearchQuery
- type Store
- func (st *Store) AutoMigrate() error
- func (store *Store) Count(query SearchQuery) (int64, error)
- func (store *Store) Drop() error
- func (st *Store) EnableDebug(debug bool)
- func (store *Store) Insert(data map[string]any) error
- func (store *Store) InsertMany(data []map[string]any) error
- func (store *Store) Search(query SearchQuery) ([]map[string]any, error)
- func (store *Store) Truncate() error
- type StoreInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewStoreOptions ¶
type NewStoreOptions struct {
TableName string
DB *sql.DB
DbDriverName string
AutomigrateEnabled bool
DebugEnabled bool
Columns []sb.Column
}
NewStoreOptions define the options for creating a new session store
type SearchQuery ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the index store
func NewStore ¶
func NewStore(opts NewStoreOptions) (*Store, error)
NewStore creates a new entity store
func (*Store) AutoMigrate ¶
AutoMigrate auto migrate
It will drop the index table and create it again
func (*Store) EnableDebug ¶
EnableDebug - enables the debug option