This commit is contained in:
2021-08-03 11:45:39 +08:00
parent 72b8da4c7f
commit ffd685d8b4
+4
View File
@@ -242,6 +242,7 @@ class Db implements ISqlBuilder
* @param Connection|null $connection * @param Connection|null $connection
* @return bool|int * @return bool|int
* @throws ConfigException * @throws ConfigException
* @throws Exception
*/ */
public function delete(?Connection $connection = null): bool|int public function delete(?Connection $connection = null): bool|int
{ {
@@ -255,6 +256,7 @@ class Db implements ISqlBuilder
* @param null $connection * @param null $connection
* @return bool|int * @return bool|int
* @throws ConfigException * @throws ConfigException
* @throws Exception
*/ */
public static function drop(string $table, $connection = null): bool|int public static function drop(string $table, $connection = null): bool|int
{ {
@@ -283,6 +285,7 @@ class Db implements ISqlBuilder
* @param Connection|NULL $connection * @param Connection|NULL $connection
* @return mixed * @return mixed
* @throws ConfigException * @throws ConfigException
* @throws Exception
*/ */
public static function showCreateSql(string $table, Connection $connection = NULL): mixed public static function showCreateSql(string $table, Connection $connection = NULL): mixed
{ {
@@ -297,6 +300,7 @@ class Db implements ISqlBuilder
* @param Connection|NULL $connection * @param Connection|NULL $connection
* @return bool|int|null * @return bool|int|null
* @throws ConfigException * @throws ConfigException
* @throws Exception
*/ */
public static function desc(string $table, Connection $connection = NULL): bool|int|null public static function desc(string $table, Connection $connection = NULL): bool|int|null
{ {