IRCloggy #auraphp 2013-03-17

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2013-03-17

harikt joined08:15
codebyjeff joined08:16
harikt Hey codebyjeff,08:17
codebyjeff Hi Hari - thanks a lot!08:17
harikt Good day, not sure your real time zone :)08:18
codebyjeff (Just Jeff is fine :-) )08:18
Japan - 5pm08:18
harikt codebyjeff, is the irc handle ie why ... :-) . From now onwards Jeff :)08:18
oh we are Asians :)08:18
codebyjeff so let me explain what I've been thinking about real quick, let you get back to Sunday afternoon cricket :-)08:18
harikt By the way what is your problem with Aura ?08:18
codebyjeff Nah, I'm American, just live here08:19
yes -so08:19
I've got a bunch of Codeigniter libraries that interact with db08:19
I am going to refactor to use pdo connections, so they can go anywhere08:19
I want to simply receive a pdo connection into the __construct of each, do my stuff08:20
what I'm really after is, I'd like a battle hardened PDO CRUD library, so I don't have to write all the PDO->setBind() etc stuff08:20
harikt ok08:20
codebyjeff thought it would be easy to find, but not seein ganything good08:21
was hoping to use AuraSQL lib; just seems like it is a lot of files & abstraction to try to "bundle" with my own stuff08:21
I want it to be "approachable" for the noobs on CodeIgniter who just want to autoload & use08:22
composer is great, but a little scary to set up for newer devs08:22
is there a part of AuraSQL I can just grab & use that way, without all the connection & other abstractions, or are they pretty tightly linked?08:23
harikt_ joined08:24
codebyjeff did I lose you, I think? :-)08:25
harikt_ codebyjeff, I am reading..08:25
codebyjeff ah,ok08:25
harikt_ I lost the connection in middle, but I can read from logs :)08:26
harikt left08:26
harikt_ I am not sure whether I got the question exactly .08:27
Are you talking about instantiation ?08:27
codebyjeff, ?08:28
codebyjeff yep08:28
harikt_ You can require src.php file and do.08:29
https://github.com/auraphp/Aura.Sql#instantiation08:29
codebyjeff well, what I was really hoping for when I looked at Aurasql was, there would be a connection class & abstractions, and a query class & abstractions, but they would be completely separate compoents so I could use eithe rone08:30
harikt_ oh you mean taking only seprate class08:30
?08:30
codebyjeff yes08:30
I really only need a pdo CRUD wrapper08:31
I'll use that in my own lib, so I don't have to rewrite it all, then accept any pdo conn08:31
harikt_ ok. So what you can do is take only the necessary class08:32
codebyjeff yes08:32
harikt_ you can remove the gateway stuffs which is for unit of work , to make it as orm .08:33
You can take the Connection stuffs08:33
only the class you need like that.08:33
or pretty easy is clone the repo and require src.php08:33
that is what I will suggest .08:33
codebyjeff so - would only Connection and use abstractConnection give me all I want, w/o the Query class?08:34
harikt_ this way you will not miss any bugs or new features08:34
codebyjeff yes- I want to stay linked08:34
harikt_ no you need the Query ofcourse to make it crud08:34
codebyjeff right...so I'm back to sort of needing all of it :-)08:34
harikt_ You are only placing files, but not really using it .08:35
What I can suggest is add your own require file which can handle autoloading08:35
an spl_autoloader . Basic example here https://github.com/auraphp/Aura.Sql/blob/develop/tests/bootstrap.php#L608:36
codebyjeff yes. my concern is actually more the "psychological" of having all these files as dependencies in order to run my own libs08:36
harikt_ So you will never require all08:36
codebyjeff but I guess that is just something to live with, if I go this way08:36
I really like AuraSql, just seems more suited as part of a self-made framework vs. a query builder for a single library08:37
harikt_ may be my answer didn't helped ?08:38
codebyjeff no, it did! main thing was I needed to be able to bounce this off someone, make sure I wasn't completely wrongly thinking it all08:39
just may end up being not the right tool. not to worry - I'll be using it for something eventually :-)08:39
thanks a lot - I appreciate you taking the time for me personally!08:39
harikt_ okey you can ask to auraphp group , probably pmjones can help you more.08:40
codebyjeff sure thing, thanks for suggestion08:40
harikt_ ok then enjoy your day.08:40
codebyjeff take care - enjoy your weekend!08:40
harikt_ if you need you can copy the files.08:41
codebyjeff left08:41
harikt_ left08:41

Logs Search ←Prev date Next date→ Channels Documentation