FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
database/src/Connection.php at master · selective-php/database · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Nov 26, 2022. It is now read-only.
selective-php
/
database
Public archive
Notifications
You must be signed in to change notification settings
Fork
4
Star
23
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
database
/
src
/
Connection.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
84 lines (73 loc) · 1.23 KB
Breadcrumbs
database
/
src
/
Connection.php
Copy path
File metadata and controls
84 lines (73 loc) · 1.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
namespace
Selective
\
Database
;
use
PDO
;
/**
* Database connection.
*/
final
class
Connection
{
/**
* @var PDO
*/
private
PDO
$
pdo
;
/**
* @var Quoter
*/
private
Quoter
$
quoter
;
/**
* The constructor.
*
* @param PDO $pdo The PDO instance
*/
public
function
__construct
(
PDO
$
pdo
)
{
$
this
->
pdo
=
$
pdo
;
$
this
->
quoter
=
new
Quoter
(
$
this
);
}
/**
* @return SelectQuery
*/
public
function
select
():
SelectQuery
{
return
new
SelectQuery
(
$
this
);
}
/**
* @return InsertQuery
*/
public
function
insert
():
InsertQuery
{
return
new
InsertQuery
(
$
this
);
}
/**
* @return UpdateQuery
*/
public
function
update
():
UpdateQuery
{
return
new
UpdateQuery
(
$
this
);
}
/**
* @return DeleteQuery
*/
public
function
delete
():
DeleteQuery
{
return
new
DeleteQuery
(
$
this
);
}
/**
* Get PDO.
*
* @return PDO
*/
public
function
getPdo
():
PDO
{
return
$
this
->
pdo
;
}
/**
* Get quoter.
*
* @return Quoter
*/
public
function
getQuoter
():
Quoter
{
return
$
this
->
quoter
;
}
}
Back
|
FazBrowse Home
|
New Git URL