MysqlImprove __construct(
[
$option = ''], [
$type = 'product']
)
|
|
생성자
Parameters:
API Tags:
Redefinition of:
- Mysql::__construct()
- 생성자
에러 메세지 리턴
API Tags:
| Return: | 에러 메세지 |
| Access: | public |
Redefinition of:
- Mysql::error()
- 에러 메세지 리턴
string escape(
string
$str
)
|
|
문자열 escape
Parameters:
|
string |
$str: |
escape 될 문자열 |
API Tags:
| Return: | escape 된 문자열 |
| Access: | public |
Redefinition of:
- Mysql::escape()
- 문자열 escape
array fetch(
resource
$result
)
|
|
실행된 select 쿼리에 대해서 fetch 를 통해 한 행(row)을 리턴한다.
리턴되는 값은 array('필드' => 'ㅁㅁㅁ', ...); 형태를 가진다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
API Tags:
| Return: | row 데이타 |
| Access: | public |
Redefinition of:
- Mysql::fetch()
- 실행된 select 쿼리에 대해서 fetch 를 통해 한 행(row)을 리턴한다.
void fetchField(
$result, [
$attribute = 'name']
)
|
|
Parameters:
API Tags:
메모리 해제
Parameters:
API Tags:
Redefinition of:
- Mysql::free()
- 메모리 해제
bool freeStatement(
resource
$stmt
)
|
|
프로시저 메모리 해제
Parameters:
|
resource |
$stmt: |
prepare결과 나온 resource |
API Tags:
| See: | Mysql_i::prepare() |
| Access: | public |
Redefinition of:
- DBClient::freeStatement()
- prepare 된 구문 메모리 해제
int getFieldCount(
resource
$result
)
|
|
쿼리의 결과로 나온 필드의 개수를 리턴한다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
API Tags:
| Return: | 필드개수 |
| Access: | public |
Redefinition of:
- Mysql::getFieldCount()
- 쿼리의 결과로 나온 필드의 개수를 리턴한다.
void getFieldList(
$result
)
|
|
Parameters:
API Tags:
Redefinition of:
- DBClient::getFieldList()
- 실행되어진 쿼리에 대해서 필드리스트를 가지고 온다.
string getFieldName(
resource
$result, int
$i
)
|
|
정해진 위치의 필드 이름을 얻어온다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
int |
$i: |
필드 위치, 처음은 0 |
API Tags:
| Return: | 필드이름 |
| Access: | public |
Redefinition of:
- Mysql::getFieldName()
- 정해진 위치의 필드 이름을 얻어온다.
string getFieldType(
resource
$result, int
$i
)
|
|
정해진 위치의 필드 타입을 얻어온다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
int |
$i: |
필드 위치, 처음은 0 |
API Tags:
| Return: | 필드타입 |
| Access: | public |
Redefinition of:
- Mysql::getFieldType()
- 정해진 위치의 필드 타입을 얻어온다.
resource query(
string
$sql
)
|
|
일반 쿼리 실행
Parameters:
API Tags:
| Return: | 실행 resource |
| Access: | public |
Redefinition of:
- Mysql::query()
- 일반 쿼리 실행
커서 이동
Parameters:
|
int |
$count: |
이동시킬 상대위치, 사직행은 0 |
API Tags:
Redefinition of:
- Mysql::seek()
- 커서 이동
bool selectDB(
string
$db_name
)
|
|
DB 선택하기
Parameters:
|
string |
$db_name: |
접속할 데이타베이스명 |
API Tags:
Redefinition of:
- Mysql::selectDB()
- DB 선택하기
database 연결 생성
API Tags:
| Return: | 연결 resource |
| Access: | protected |
Redefinition of:
- Mysql::_connect()
- database 연결 생성