MCPcopy Index your code
hub / github.com/apache/devlake / IsTableExist

Method IsTableExist

backend/impls/dalgorm/dalgorm.go:512–514  ·  view source on GitHub ↗

IsTableExist checks if table exists

(err error)

Source from the content-addressed store, hash-verified

510
511// IsTableExist checks if table exists
512func (d *Dalgorm) IsTableExist(err error) bool {
513 return strings.Contains(err.Error(), "Unknown table")
514}
515
516// RawCursor (Deprecated) executes raw sql query and returns a database cursor
517func (d *Dalgorm) RawCursor(query string, params ...interface{}) (*sql.Rows, errors.Error) {

Callers 1

convertGormErrorMethod · 0.95

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected