dist/jate/modules/Connection/Adapters/PdoAdapterSqLiteMemory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
  jRequire("PdoAdapterMysql.php");
  class PdoAdapterSqLiteMemory extends PdoAdapterMysql {
      public $connection;
      public function __construct( $_srv, $_db, $_usr, $_pass ) {
        try {
          $this->connection = new PDO("sqlite::memory:");
        } catch( Exception $e ) {
          throw new JException($e->getMessage());
        }
      }
      public function newTable( $_sql ) {
        try {
          $temp = $this->connection->exec($_sql);
        } catch (Exception $e) {
          throw new JException($e->getMessage());
        }
        return $temp;
      }
  }
?>