Skip to content

Commit

Permalink
write full require
Browse files Browse the repository at this point in the history
  • Loading branch information
MygengBin committed Nov 25, 2022
1 parent 448d657 commit 6b241d2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
}
],
"minimum-stability": "alpha",
"require": {},
"require": {
"ext-pdo": "*"
},
"license": "MIT"
}
7 changes: 4 additions & 3 deletions src/Sqlbatis.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

namespace Gengbin\Sqlbatis;

abstract class Sqlbatis{
use PDO;
use PDOException;
abstract class Sqlbatis implements SqlbatisInterface {
abstract function construct($connectData='',$userName='',$userPassword=''):array;

function resource(): array
Expand Down Expand Up @@ -60,4 +61,4 @@ function exec($sql): array
}
return $data;
}
}
}
13 changes: 13 additions & 0 deletions src/SqlbatisInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php


namespace Gengbin\Sqlbatis;


interface SqlbatisInterface
{
function construct($connectData='',$userName='',$userPassword=''):array;
function resource(): array;
function query($sql=''): array;
function exec($sql): array;
}

0 comments on commit 6b241d2

Please sign in to comment.