Sqlite __construct(
[
$option = ''], [
$type = 'product']
)
|
|
생성자
Parameters:
API Tags:
Redefinition of:
- DBClient::__construct()
에러 메세지 리턴
API Tags:
| Return: | 에러 메세지 |
| Access: | public |
Redefinition of:
- DBClient::error()
- 에러 리턴
string escape(
string
$str
)
|
|
문자열 escape
Parameters:
|
string |
$str: |
escape 될 문자열 |
API Tags:
| Return: | escape 된 문자열 |
| Access: | public |
Redefinition of:
- DBClient::escape()
- 각각 DB별 문자열 escape
array fetch(
resource
$result, [
$result_type = SQLITE_ASSOC]
)
|
|
실행된 select 쿼리에 대해서 fetch 를 통해 한 행(row)을 리턴한다.
리턴되는 값은 array('필드' => 'ㅁㅁㅁ', ...); 형태를 가진다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
|
$result_type: |
|
API Tags:
| Return: | row 데이타 |
| Access: | public |
Redefinition of:
- DBClient::fetch()
- 레코드 가져오기
void fetchAll(
$result, [
$result_type = SQLITE_ASSOC], [
$decode_binary = true]
)
|
|
Parameters:
|
|
$result: |
|
|
|
$result_type: |
|
|
|
$decode_binary: |
|
API Tags:
Redefinition of:
- DBClient::fetchAll()
- 전체 레코드 가져오기
int getFieldCount(
resource
$result
)
|
|
쿼리의 결과로 나온 필드의 개수를 리턴한다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
API Tags:
| Return: | 필드개수 |
| Access: | public |
Redefinition of:
- DBClient::getFieldCount()
- 필드 개수 가지고 오기
string getFieldName(
resource
$result, int
$i
)
|
|
정해진 위치의 필드 이름을 얻어온다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
int |
$i: |
필드 위치, 처음은 0 |
API Tags:
| Return: | 필드이름 |
| Access: | public |
Redefinition of:
- DBClient::getFieldName()
- 필드 이름 가지고 오기
string getFieldType(
resource
$result, int
$i
)
|
|
정해진 위치의 필드 타입을 얻어온다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
int |
$i: |
필드 위치, 처음은 0 |
API Tags:
| Return: | 필드타입 |
| Access: | public |
Redefinition of:
- DBClient::getFieldType()
- 필드 타입 가지고 오기
DBData getPageData(
string
$query, int
$page, [int
$count = 10]
)
|
|
select 쿼리에 대해서 페이징된 DBData를 리턴한다.
Parameters:
|
string |
$query: |
select 쿼리 |
|
int |
$page: |
현재 페이지 |
|
int |
$count: |
페이지당 리스트 개수 |
Redefinition of:
- DBClient::getPageData()
- paging 된 DBData 얻어오기
resource query(
string
$sql
)
|
|
일반 쿼리 실행
Parameters:
API Tags:
| Return: | 실행 resource |
| Access: | public |
Redefinition of:
- DBClient::query()
- 쿼리 실행하기
커서 이동
Parameters:
|
int |
$count: |
이동시킬 상대위치, 사직행은 0 |
API Tags:
Redefinition of:
- DBClient::seek()
- result set 이동
database 연결 생성
API Tags:
| Return: | 연결 resource |
| Access: | protected |
Redefinition of:
- DBClient::_connect()
- 연결 리소스 리턴