{"repo":"suketa/ruby-duckdb","free":true,"listed":false,"github":"https://github.com/suketa/ruby-duckdb","clone":"git clone https://github.com/suketa/ruby-duckdb.git","description":"Ruby binding for DuckDB","language":"Ruby","stars":256,"topics":["hacktoberfest","database","ruby"],"license":"MIT","category":"databases-storage","readme_excerpt":"ruby-duckdb Description This gem duckdb is Ruby client for the DuckDB database engine. Requirement You must have DuckDB engine installed in order to use this gem. Pre-requisite setup (Linux): 1. Download the latest C++ package release for DuckDB. 2. Move the files to their respective location: - Extract the duckdb.h and duckdb.hpp file to /usr/local/include . - Extract the libduckdb.so file to /usr/local/lib . 3. To create the necessary link, run ldconfig as root: Pre-requisite setup (macOS): Using brew install is recommended. Pre-requisite setup (Windows): Using Ruby + Devkit is recommended. 1. Download libduckdb-windows-amd64.zip from DuckDB and extract it. 2. Copy duckdb.dll into C:\\Windows\\System32 How to install After you've run the above pre-requisite setup, this should work fine. If it doesn't, you may have to specify the location of the C header and library files: Usage The followings are some examples, for more detailed information, please refer to the documentation. Or, you can use block. Using bind variables You can use bind variables. Using prepared statement You can use prepared statement. Prepared statement object is created by Connection#prepare method or DuckDB::PreparedStatement.new . You must call PreparedStatement#destroy method after using prepared statement. Otherwise, automatically destroyed when the PreparedStatement object is garbage collected. Instead of calling PreparedStatement#destroy , you can use block. Using async query You can use async query. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/suketa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/suketa/ruby-duckdb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}