Skip to content

SQLType

[Source]

The most portable implementation of ODBC when reading and writing across the various database vendors has been as textual data via a buffer.

Given this, we have implemented our SQL Datatypes in two halves - a "front-end" class, and this back-end SQLType.

This class is responsible for allocating, binding, reallocating, reading, and writing the buffers with the database.

The front-end class is responsible for translating the data to and from the native pony datatype.

You should only need to refer to this trait if you are implementing a missing SQL datatype.

Implemented ODBC Types:

  • SQLBigInteger
  • SQLFloat
  • SQLInteger
  • SQLReal
  • SQLSmallInteger
  • SQLVarchar
trait ref SQLType