Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793680
BlackholeEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
932 B
Referenced Files
None
Subscribers
None
BlackholeEngine.php
View Options
<?php
namespace
Keruald\Database\Engines
;
use
Keruald\Database\DatabaseEngine
;
use
Keruald\Database\Result\DatabaseResult
;
class
BlackholeEngine
extends
DatabaseEngine
{
public
function
escape
(
string
$expression
)
:
string
{
return
$expression
;
}
public
function
query
(
string
$query
)
:
bool
|
DatabaseResult
{
return
true
;
}
public
function
nextId
()
:
int
|
string
{
return
0
;
}
public
function
countAffectedRows
()
:
int
{
return
0
;
}
protected
function
getExceptionContext
()
:
array
{
return
[];
}
public
static
function
load
(
array
$config
):
DatabaseEngine
{
return
new
self
;
}
public
function
getUnderlyingDriver
()
:
mixed
{
return
null
;
}
public
function
isExistingTable
(
string
$database
,
string
$table
)
:
bool
{
// Everything and nothing exists in a blackhole
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 22:47 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2439623
Default Alt Text
BlackholeEngine.php (932 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment