Documentation
¶
Index ¶
- func New(id common.RegDbID, url string) (common.Database, error)
- func NewInstance(id common.RegDbID, reference *common.Reference, password string) (common.Database, error)
- type Adabas
- func (ada *Adabas) AdaptTable(string, any) error
- func (ada *Adabas) Batch(batch string) error
- func (ada *Adabas) BatchSelect(batch string) ([][]interface{}, error)
- func (ada *Adabas) BatchSelectFct(*common.Query, common.ResultFunction) error
- func (ada *Adabas) BeginTransaction() error
- func (ada *Adabas) Clone() common.Database
- func (ada *Adabas) Close()
- func (ada *Adabas) Commit() error
- func (ada *Adabas) CreateTable(string, any) error
- func (ada *Adabas) Delete(name string, remove *common.Entries) (int64, error)
- func (ada *Adabas) DeleteTable(string) error
- func (ada *Adabas) FreeHandler()
- func (ada *Adabas) GetTableColumn(tableName string) ([]string, error)
- func (ada *Adabas) ID() common.RegDbID
- func (ada *Adabas) Insert(name string, insert *common.Entries) ([][]any, error)
- func (ada *Adabas) Maps() ([]string, error)
- func (ada *Adabas) Open() (any, error)
- func (ada *Adabas) Ping() error
- func (ada *Adabas) Query(search *common.Query, f common.ResultFunction) (*common.Result, error)
- func (ada *Adabas) Rollback() error
- func (ada *Adabas) SetCredentials(user, password string) error
- func (ada *Adabas) Stream(search *common.Query, sf common.StreamFunction) error
- func (ada *Adabas) URL() string
- func (ada *Adabas) Update(name string, insert *common.Entries) ([][]any, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adabas ¶
type Adabas struct {
common.CommonDatabase
// contains filtered or unexported fields
}
func (*Adabas) AdaptTable ¶
AdaptTable adapt a new table
func (*Adabas) BatchSelect ¶
BatchSelect batch SQL query in table with values returned
func (*Adabas) BatchSelectFct ¶
BatchSelectFct batch SQL query in table with fct called
func (*Adabas) BeginTransaction ¶
func (*Adabas) CreateTable ¶
CreateTable create a new table
func (*Adabas) DeleteTable ¶
DeleteTable delete a table
func (*Adabas) FreeHandler ¶
func (ada *Adabas) FreeHandler()
FreeHandler don't use the driver anymore
func (*Adabas) GetTableColumn ¶
GetTableColumn get table columne names
func (*Adabas) SetCredentials ¶
SetCredentials set credentials to connect to database
Click to show internal directories.
Click to hide internal directories.