rails-sqlserver/tiny_tds: TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
12-Sep-2025 361
The TinyTDS gem is meant to serve the extremely common use-case of connecting, querying and iterating over results to Microsoft SQL Server from Ruby using the FreeTDS's DB-Library API.
TinyTDS offers automatic casting to Ruby primitives along with proper encoding support. It converts all SQL Server datatypes to native Ruby primitives while supporting :utc or :local time zones for time-like types. To date it is the only Ruby client library that allows client encoding options, defaulting to UTF-8, while connecting to SQL Server. It also properly encodes all string and binary data.
The API is simple and consists of these classes:
TinyTds::Client - Your connection to the database.
TinyTds::Result - Returned from issuing an #execute on the connection. It includes Enumerable.
TinyTds::Error - A wrapper for all FreeTDS exceptions.
rails-sqlserver/tiny_tds: TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library. #ruby #rubydeveloper #rubyonrails #rails-sqlserver/tiny_tds: #TinyTDS #Simple #FreeTDS #bindings #using #DB-Library. #db-library. https://www.rubyonrails.ba/link/rails-sqlserver-tiny_tds-tinytds-simple-and-fast-freetds-bindings-for-ruby-using-db-library