| 2013-03-17 |
| → harikt joined | 08:15 |
| → codebyjeff joined | 08: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 - 5pm | 08: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 here | 08:19 |
|
| yes -so | 08:19 |
|
| I've got a bunch of Codeigniter libraries that interact with db | 08:19 |
|
| I am going to refactor to use pdo connections, so they can go anywhere | 08:19 |
|
| I want to simply receive a pdo connection into the __construct of each, do my stuff | 08: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 stuff | 08:20 |
|
harikt
| ok | 08:20 |
|
codebyjeff
| thought it would be easy to find, but not seein ganything good | 08:21 |
|
| was hoping to use AuraSQL lib; just seems like it is a lot of files & abstraction to try to "bundle" with my own stuff | 08:21 |
|
| I want it to be "approachable" for the noobs on CodeIgniter who just want to autoload & use | 08:22 |
|
| composer is great, but a little scary to set up for newer devs | 08: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_ joined | 08:24 |
|
codebyjeff
| did I lose you, I think? :-) | 08:25 |
|
harikt_
| codebyjeff, I am reading.. | 08:25 |
|
codebyjeff
| ah,ok | 08:25 |
|
harikt_
| I lost the connection in middle, but I can read from logs :) | 08:26 |
| ← harikt left | 08: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
| yep | 08:28 |
|
harikt_
| You can require src.php file and do. | 08:29 |
|
| https://github.com/auraphp/Aura.Sql#instantiation | 08: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 rone | 08:30 |
|
harikt_
| oh you mean taking only seprate class | 08:30 |
|
| ? | 08:30 |
|
codebyjeff
| yes | 08:30 |
|
| I really only need a pdo CRUD wrapper | 08:31 |
|
| I'll use that in my own lib, so I don't have to rewrite it all, then accept any pdo conn | 08:31 |
|
harikt_
| ok. So what you can do is take only the necessary class | 08:32 |
|
codebyjeff
| yes | 08: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 stuffs | 08:33 |
|
| only the class you need like that. | 08:33 |
|
| or pretty easy is clone the repo and require src.php | 08: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 features | 08:34 |
|
codebyjeff
| yes- I want to stay linked | 08:34 |
|
harikt_
| no you need the Query ofcourse to make it crud | 08: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 autoloading | 08:35 |
|
| an spl_autoloader . Basic example here https://github.com/auraphp/Aura.Sql/blob/develop/tests/bootstrap.php#L6 | 08:36 |
|
codebyjeff
| yes. my concern is actually more the "psychological" of having all these files as dependencies in order to run my own libs | 08:36 |
|
harikt_
| So you will never require all | 08:36 |
|
codebyjeff
| but I guess that is just something to live with, if I go this way | 08:36 |
|
| I really like AuraSql, just seems more suited as part of a self-made framework vs. a query builder for a single library | 08: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 all | 08: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 suggestion | 08: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 left | 08:41 |
| ← harikt_ left | 08:41 |