Skip to content

Commit

Permalink
Add oneline config
Browse files Browse the repository at this point in the history
  • Loading branch information
Enelar committed Jan 25, 2016
1 parent e663bc0 commit f566465
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions oneline.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php namespace phpsql;

require('db.php');

function OneLineConfig($conf)
{
require('phpsql.php');
require('wrapper.php');

list($scheme) = explode(":", $conf);
require("{$scheme}.php");

$phpsql = new \phpsql();
$connection = $phpsql->Connect($conf);
\db::Bind(new \phpsql\utils\wrapper($connection));
}

0 comments on commit f566465

Please sign in to comment.