Skip to content

Commit

Permalink
增加getSuffix方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Feb 20, 2025
1 parent 0cb444c commit e4d2a3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/model/concern/DbConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ public function replace(bool $replace = true)
return $this;
}

/**
* 获取当前模型的数据表后缀
*
* @return string
*/
public function getSuffix(): string
{
return $this->getOption('suffix', '');
}

/**
* 设置当前模型数据表的后缀
Expand Down

0 comments on commit e4d2a3c

Please sign in to comment.