Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func GetSQLWriterDBAddressFunc() func(context.Context, bool) (string, error)
 - func InitOrRefreshDBConn(forceNewConn bool, randomCN bool) (*sql.DB, error)
 - func SetDBConn(conn *sql.DB)
 - func SetSQLWriterDBAddressFunc(f func(context.Context, bool) (string, error))
 - func SetSQLWriterDBUser(userName string, password string)
 - func WriteRowRecords(records [][]string, tbl *table.Table, timeout time.Duration) (int, error)
 - type DBUser
 
Constants ¶
      View Source
      
  
    const DBConnRetryThreshold = 8
    
      View Source
      
  
    const MOLoggerUser = "mo_logger"
    
      View Source
      
  
    const MaxConnectionNumber = 1
    
      View Source
      
  
    const MaxInsertLen = 200
    
      View Source
      
  
const MiddleInsertLen = 10
    Variables ¶
      View Source
      
  var (
	DBConnErrCount atomic.Uint32
)
    sqlWriterDBUser holds the db user for logger
Functions ¶
func InitOrRefreshDBConn ¶
func SetSQLWriterDBUser ¶
Types ¶
 Click to show internal directories. 
   Click to hide internal directories.