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 Oracle
- func (oracle *Oracle) AdaptTable(string, any) error
- func (oracle *Oracle) Batch(batch string) error
- func (oracle *Oracle) BatchSelect(batch string) ([][]interface{}, error)
- func (oracle *Oracle) BatchSelectFct(search *common.Query, fct common.ResultFunction) error
- func (oracle *Oracle) BeginTransaction() error
- func (oracle *Oracle) ByteArrayAvailable() bool
- func (oracle *Oracle) Clone() common.Database
- func (oracle *Oracle) Close()
- func (oracle *Oracle) Commit() error
- func (oracle *Oracle) CreateTable(name string, columns any) error
- func (oracle *Oracle) Delete(name string, remove *common.Entries) (int64, error)
- func (oracle *Oracle) DeleteTable(name string) error
- func (oracle *Oracle) EndTransaction(commit bool) (err error)
- func (oracle *Oracle) FreeHandler()
- func (oracle *Oracle) GetTableColumn(tableName string) ([]string, error)
- func (oracle *Oracle) ID() common.RegDbID
- func (oracle *Oracle) IndexNeeded() bool
- func (oracle *Oracle) Insert(name string, insert *common.Entries) ([][]any, error)
- func (oracle *Oracle) Maps() ([]string, error)
- func (oracle *Oracle) Open() (dbOpen any, err error)
- func (oracle *Oracle) Ping() error
- func (oracle *Oracle) Query(search *common.Query, f common.ResultFunction) (*common.Result, error)
- func (oracle *Oracle) Reference() (string, string)
- func (oracle *Oracle) Rollback() error
- func (oracle *Oracle) SetCredentials(user, password string) error
- func (oracle *Oracle) StartTransaction() (*sql.Tx, context.Context, error)
- func (oracle *Oracle) Stream(search *common.Query, sf common.StreamFunction) error
- func (oracle *Oracle) URL() string
- func (oracle *Oracle) Update(name string, insert *common.Entries) ([][]any, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Oracle ¶
type Oracle struct {
common.CommonDatabase
Protocol string
Host string
Port int
ServiceName string
// contains filtered or unexported fields
}
Oracle instance for MySQL
func (*Oracle) AdaptTable ¶
AdaptTable adapt a new table
func (*Oracle) BatchSelect ¶
BatchSelect batch SQL query in table with values returned
func (*Oracle) BatchSelectFct ¶
BatchSelectFct batch SQL query in table with fct called
func (*Oracle) BeginTransaction ¶
StartTransaction start transaction the database connection
func (*Oracle) ByteArrayAvailable ¶
ByteArrayAvailable byte array available in SQL database
func (*Oracle) CreateTable ¶
CreateTable create a new table
func (*Oracle) DeleteTable ¶
DeleteTable delete a table
func (*Oracle) EndTransaction ¶
func (*Oracle) FreeHandler ¶
func (oracle *Oracle) FreeHandler()
FreeHandler don't use the driver anymore
func (*Oracle) GetTableColumn ¶
GetTableColumn get table columne names
func (*Oracle) IndexNeeded ¶
IndexNeeded index needed for the SELECT statement value reference
func (*Oracle) SetCredentials ¶
SetCredentials set credentials to connect to database
func (*Oracle) StartTransaction ¶
StartTransaction start transaction
Click to show internal directories.
Click to hide internal directories.