Skip to content

Commit a04ecd4

Browse files
committed
IHF: Helpers renamed.
1 parent 4a439e8 commit a04ecd4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/laravel.php renamed to src/db.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
use Illuminate\Support\Facades\DB;
44

5-
if (!function_exists('laravel_db_is_mysql')) {
6-
function laravel_db_is_mysql()
5+
if (!function_exists('db_is_mysql')) {
6+
function db_is_mysql()
77
{
88
return (DB::getDefaultConnection() == 'mysql');
99
}
1010
}
1111

12-
if (!function_exists('laravel_db_mysql_now')) {
13-
function laravel_db_mysql_now()
12+
if (!function_exists('db_mysql_now')) {
13+
function db_mysql_now()
1414
{
1515
$result = (array) DB::selectOne('select now() as now');
1616
return $result['now'];
1717
}
1818
}
1919

20-
if (!function_exists('laravel_db_mysql_variable')) {
21-
function laravel_db_mysql_variable($name)
20+
if (!function_exists('db_mysql_variable')) {
21+
function db_mysql_variable($name)
2222
{
2323
$result = (array) DB::selectOne('show variables where variable_name = ?', [$name]);
2424
return (isset($result['Value']) ? $result['Value'] : false);

0 commit comments

Comments
 (0)