0

I need to create a custom function silimar with mysql. But this must be in sqlite to run tdd.

I have not found how to do this in documentation or in code structure.

Reference: http://php.net/manual/en/pdo.sqlitecreatefunction.php

Thanks.

2
  • are there any reasons why you don't use SQLlite datasource in CakePHP ? Commented May 20, 2013 at 1:40
  • Not that I know, or I do not understant your question. I always use to work with TDD. Commented May 23, 2013 at 2:00

1 Answer 1

1

You can get PDO connection with something like this

$pdo = $this->SomeModel->getDataSource()->getConnection();

And then use your reference.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.