Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11722820
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
README.md
View Options
#
keruald
/
database
This
library
offers
a
simple
layer
of
abstraction
for
database
operations
.
##
Configuration
To
get
a
database
instance
,
you
need
to
pass
configuration
as
an
array
.
The
properties
and
values
depend
on
the
engine
you
want
to
use
.
###
MySQLi
|
Key
|
Value
|
|
|----------|--------------------------------------|:--------:|
|
engine
|
MySQLiEngine
class
reference
|
|
|
host
|
The
MySQL
hostname
,
e
.
g
.
"localhost"
|
|
|
username
|
The
MySQL
user
to
use
for
connection
|
|
|
password
|
The
clear
text
password
to
use
|
|
|
database
|
The
default
db
to
select
for
queries
|
optional
|
For
example
:
```
php
[
'
engine
'
=>
Keruald
\
Database
\
Engines
\
MySQLiEngine
::
class
,
'
host
'
=>
'
localhost
'
,
'
username
'
=>
'
app
'
,
'
password
'
=>
'
someSecret
'
,
'
database
'
=>
'
app
'
,
// optional
]
```
##
Legacy
drivers
The
mysql
extension
has
been
deprecated
in
PHP
5.7
and
removed
in
PHP
7
.
As
such
,
this
extension
isn
'
t
supported
anymore
.
You
can
use
straightforwardly
replace
'
MySQL
'
by
'
MySQLi
'
as
engine
.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 18, 05:47 (6 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2987240
Default Alt Text
README.md (1 KB)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment