IsTableExist checks if table exists
(err error)
| 510 | |
| 511 | // IsTableExist checks if table exists |
| 512 | func (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 |
| 517 | func (d *Dalgorm) RawCursor(query string, params ...interface{}) (*sql.Rows, errors.Error) { |