Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Setting up database connection in tests

by dsheroh (Parson)
on Sep 14, 2012 at 08:52 UTC ( #993684=note: print w/ replies, xml ) Need Help??


in reply to Re: Setting up database connection in tests
in thread Setting up database connection in tests

Or don't even bother with the temp file and attach SQLite to the file :memory: for an in-memory database.


Comment on Re^2: Setting up database connection in tests
Download Code
Re^3: Setting up database connection in tests
by tobyink (Abbot) on Sep 14, 2012 at 09:00 UTC

    Indeed, but that couldn't be used to persist across multiple ".t" files, which was one of the criteria the OP mentioned.

    Obviously if you're using very advanced SQL features, you may not be able to support SQLite. But if you're almost able to support SQLite already, then it's certainly worth putting in the extra effort to support it fully. The benefits to your test suite will pay back your effort.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993684]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-09-19 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls