File: getdata.h

package info (click to toggle)
pyodbc 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 672 kB
  • sloc: cpp: 7,631; python: 2,198; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#ifndef _GETDATA_H_
#define _GETDATA_H_

void GetData_init();

PyObject* PythonTypeFromSqlType(Cursor* cur, SQLSMALLINT type);

PyObject* GetData(Cursor* cur, Py_ssize_t iCol);

/**
 * If this sql type has a user-defined conversion, the index into the connection's `conv_funcs` array is returned.
 * Otherwise -1 is returned.
 */
int GetUserConvIndex(Cursor* cur, SQLSMALLINT sql_type);

#endif // _GETDATA_H_