Documentation ¶
Index ¶
- func CreateSqlServerString(server string, user string, pass string, db string) string
- func CreateSqliteString(file string, config string) string
- func CreateSqliteStringWithPass(file string, user string, pass string, config string) string
- type SqlServerUtils
- type SqlUtils
- func (s *SqlUtils) Begin() bool
- func (s *SqlUtils) End() bool
- func (s *SqlUtils) Error() string
- func (s *SqlUtils) ExecBatch(args ...interface{}) bool
- func (s *SqlUtils) ExecCmd(cmd string) bool
- func (s *SqlUtils) ExecCmdWithArgs(cmd string, args ...interface{}) bool
- func (s *SqlUtils) GetInt(cmd string) (int64, bool)
- func (s *SqlUtils) GetString(cmd string) (string, bool)
- func (s *SqlUtils) Prepare(cmd string) bool
- func (s *SqlUtils) SetError(err error)
- type SqliteUtils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSqlServerString ¶
Types ¶
type SqlServerUtils ¶
* add by yjh 211125 * for sqlserver *
func BuildSqlServer ¶
func BuildSqlServer() *SqlServerUtils
func (*SqlServerUtils) CloseSqlServer ¶
func (s *SqlServerUtils) CloseSqlServer()
func (*SqlServerUtils) ConnectSqlServer ¶
func (s *SqlServerUtils) ConnectSqlServer(constr string) bool
type SqlUtils ¶
type SqlUtils struct { Db *sql.DB Result sql.Result Tx *sql.Tx Stmt *sql.Stmt // contains filtered or unexported fields }
* add by yjh 211109 * define base type *
func (*SqlUtils) ExecCmdWithArgs ¶
type SqliteUtils ¶
* add by yjh 211125 * for sqlserver *
func BuildSqlite ¶
func BuildSqlite() *SqliteUtils
func (*SqliteUtils) OpenFile ¶
func (s *SqliteUtils) OpenFile(dbFile string) bool
Click to show internal directories.
Click to hide internal directories.