- Automatically detect homebrew library path on Mac-OS
- Fix Typo
CDataType::TypeTimestampWithTimzone
is nowCDataType::TypeTimestampWithTimezone
- New handle type
DBC_INFO_TOKEN
.
- Add
SQLSetPos
- Add
InfoType::ActiveEnvironments
- Fix Typo
InfoType::MaxDiverConnections
is nowInfoType::MaxDriverConnections
Thanks to @lfrancke
- Extend
InfoType
to determine cursor capabilities. E.g.InfoType::ScrollOptions
- Add narrow
SQLForeignKeys
- Add
SQLNumParams
- Add
SQLColumns
. Previously onlySQLColumnsW
had been declared.
- Add
SQLColAttribute
. Previously onlySQLColAttributeW
had been declared.
- Add
SQLGetConnectAttr
. Previously only wide version had been declared. - Removed
enum SqlAttributeStringLength
in favour of constants. - Update edition to 2012
- Add
StatementAttribute::MetadataId
- Update to Rust edition 2018
- Check for overflow in
len_data_at_exec
.
- Improved documentation connection pooling.
- Add
SQLParamData
- Add
DATA_AT_EXEC
- Add
fn len_data_at_exec
- Type of
NTS
andNTSL
is nowisize
.
- Introduce
iodbc
feature for linking against iodbc on OS-X.
- Fix:
SqlReturn::INVALID_HANDLE
is now correctly set to-2
.
-
Remove constants and types specific to Microsoft SQL Server.
SS_LENGTH_UNLIMITED
SsTime2
SsTimestampOffset
SS_VARIANT
SS_UDT
SS_XML
SS_TABLE
SS_TIME_2
SS_TIMESTAMP_OFFSET
-
Renames
CDataType::UTinyInty
intoCDataType::UTinyInt
. -
Renames
Nullable
intoNullability
.
ULen
is now a type alias forusize
.Len
is now a type alias forisize
.
Both changes do not change binary size of these on any platform, but are more likely to result in portable downstream code.
SQLDescribeParam
signature changed. The type of the last parameter has been changed to*mut Nullable
.CDataType
has new VariantsArd
andApd
.
field_identifier
parameter type inSQLSetDescField
andSQLSetDescFieldW
changed toDesc
.
- Adds function
SQLSetDescFieldW
.
- Rewrites enumeration
StatementAttribute
. - Adds function
SQLGetStmtAttr
. - Adds function
SQLSetDescField
.
Numeric
members now all public.
- Derive
Default
forNumeric
.
- Derive
Debug
,PartialEq
,Eq
,Clone
andCopy
forNumeric
.
- Adds
SQLPutData
. - Adds
Numeric
.
- A type alias for
SChar
.
- Breaking Change:
SqlDataType
has been converted from an enumeration into a newtype integer.
Breaking Changes:
SQLColAttributeW
:field_identifier
parameter type has been changed to the newDesc
enumeration.Desc
has been renamed toDescription
.
Breaking Changes:
- Enum variant names have been shortend and use now idiomatic CamelCasing.
- Type Names now also use idiomatic CamelCasing.
- The
SQL
prefix has been dropped from most type names. InputOutput
has been renamed toParamType
. As the names of the enumeration should be derived of the Prefix of the associated constants in the C Headers.- Enumerations which have been casted from integers are now newtypes in order to prevent undefined behaviour in case the enum is not complete or the driver/driver manager is not ODBC conform.
SqlReturn
is now a newtype i16 with predifined constants and is now namedReturn
.Nullable
is now a newtype i16 with predefined constants.interval_type
inIntervalStruct
has been changed fromInterval
toc_int
.
-
Adds
attributes::SQL_ATTR_CONNECTION_POOLING
andattributes::SQL_ATTR_CP_MATCH
enums -
Implements Default trait for attribute values
-
Breaking Change:
SQL_ATTR_APPLICATION_KEY
constant removed because it is not part of the ODBC standard. If there is any software that depends on this constant defined, users are encouraged to open an issue report -
Breaking Change:
SQL_OV_ODBC_2
constant removed because odbc-sys does not support OBDC versions < 3.## 0. -
Breaking Change: Enum OdbcVersion renamed to
SQL_ATTR_ODBC_VERSION
to better reflect it's intended use as a value for environment attribute to be used withSQLSetEnvAttr
andSQLGetEnvAttr
functions
- Adds support for static linking
- Fix: Move
SQL_ATTR_ASYNC_STMT_EVENT
is now part of theSqlStatementAttribute
enumeration.
- Adds
InfoType::SQL_ASYNC_MODE
- Adds
InfoType::SQL_MAX_ASYNC_CONCURRENT_STATEMENTS
- Adds
InfoType::SQL_ASYNC_DBC_FUNCTIONS
, - Adds
InfoType::SQL_DRIVER_AWARE_POOLING_SUPPORTED
, - Adds
InfoType::SQL_ASYNC_NOTIFICATION
- Adds
SqlConnectionAttribute::SQL_ATTR_ASYNC_STMT_EVENT
- Adds
SqlConnectionAttribute::SQL_ATTR_ASYNC_DBC_EVENT
- Adds
SqlDataType::SQL_EXT_TIME_OR_TIME_INTERVAL
- Adds
SqlDataType::SQL_EXT_TIMESTAMP
- Adds
SqlAttributesStringLength
- Adds
SqlConnectionAttribute::SQL_ATTR_ASYNC_ENABLE
- Adds
SqlGetTypeInfo
- Fix missing
SQLConnect
- yanked due to missing
SQLConnect
- add
SqlRowCount
- Fix:
InputOutput
is now representend asi16
instead ofu16
in C code.