/    Sign up×
Community /Pin to ProfileBookmark

My PDO Wrapper Class

I’ve made a PDO Wrapper Class.

Features :
[b]CREATE TABLE
SELECT
INSERT
UPDATE
DELETE
TRUNCATE
DROP TABLE

And ofcourse, you can also run free form queries.
PDO prepared statements are used here, so…. We have an advantage[/b]

Thanks to the original source : [url]https://github.com/mikehenrty/thin-pdo-wrapper[/url]

[b]I modified it and added a lot more features.[/b]

Here is the class source : [url]http://www.scriptings.tk/paste/51e75be5656cb[/url]
Here is the sample test : [url]http://www.scriptings.tk/paste/51e758a96d3c4[/url]

Any changes that are to be made?? Please suggest.
You’re welcome to criticize.
I’ll use it later on for a huge project.

Thanks for reading. Enjoy PHP!!!

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @The_Alchemist spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...