Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions 3 README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# cbase

[![Build Status](https://travis-ci.org/devstackgroup/cbase.svg?branch=master)](https://travis-ci.org/devstackgroup/cbase)
[![Build Status](https://travis-ci.org/devstackgroup/cbase.svg?branch=dev)](https://travis-ci.org/devstackgroup/)

CRUD library for MySQL with PDO

Expand Down
6 changes: 6 additions & 0 deletions 6 config/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
return new PDO(
'mysql:host=127.0.0.1;dbname=dbname',
'dbuser',
'dbpassword'
);
3 changes: 1 addition & 2 deletions 3 index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

use CBase\Query\Query;

$pdo = new PDO("mysql:host=127.0.0.1;dbname=dbname",'dbuser','dbpassword');

$db = new Query($pdo);
$db = new Query(require_once 'config/bootstrap.php');
$db->setTable('test');

/**
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.