Results of 1 - 4 of about 4 for ToString (0.002 sec.)
- Node.js Client (Neo) 12353
- Installation To use the DuckDB Node.js client, visit the Node.js installation page . The latest stable version of the DuckDB Node.js (Neo) client is 2.0.0. An API for using DuckDB in Node.js . The primary package, @duckdb/node-api , is a hi
...rent/data/json/json_type) if (columnType.alias === 'JSON') { const json = JSON.parse(columnValue); } Every type implements toString. The result is both human-friendly and readable by DuckDB in an appropriate expression. const typeString = columnType.toSt....typeId === DuckDBTypeId.ARRAY) { const arrayItems = columnValue.items; // array of values const arrayString = columnValue.toString(); } if (columnType.typeId === DuckDBTypeId.BIT) { const bools = columnValue.toBools(); // array of booleans const bits =...columnValue.toBits(); // array of 0s and 1s const bitString = columnValue.toString(); // string of '0's and '1's } if (columnType.typeId === DuckDBTypeId.BLOB) { const blobBytes = columnValue.bytes; // Uin... - https://man.mtool.work/duckdb/2.0/clients/node_neo/overview.html
- C++ API 8857
- Installation To use the DuckDB C++ API, download the libduckdb archive for your platform. The latest stable version of the DuckDB C++ API is 2.0.0. Warning DuckDB's C++ API is internal. It is not guaranteed to be stable and can change witho
...on.Query("SELECT * FROM integers"); if (result->HasError()) { cerr << result->GetError() << endl; } else { cout << result->ToString() << endl; } Query will not throw exceptions under normal circumstances. Instead, invalid queries or other issues cause th...); row_idx++) { for (idx_t col_idx = 0; col_idx < result->ColumnCount(); col_idx++) { // GetValue returns a duckdb::Value; ToString renders it (NULL values become "NULL") cout << result->Collection().GetValue(col_idx, row_idx).ToString(); cout << (col_id... - https://man.mtool.work/duckdb/2.0/clients/cpp.html
- Instantiate 8007
- Overview DuckDB-Wasm can be instantiated in several ways, depending on how your application bundles and serves its assets. Each approach resolves the mainModule (the WebAssembly file) and the mainWorker (the worker script) for the browser's
...: { mainModule: duckdb_wasm, mainWorker: new URL('@duckdb/duckdb-wasm/dist/duckdb-browser-mvp.worker.js', import.meta.url).toString(), }, eh: { mainModule: duckdb_wasm_next, mainWorker: new URL('@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js', impo...rt.meta.url).toString(), }, }; // Select a bundle based on browser checks const bundle = await duckdb.selectBundle(MANUAL_BUNDLES); // Instantia... - https://man.mtool.work/duckdb/2.0/clients/wasm/instantiation.html
- Run Queries 7729
- Overview Java applications send queries and read result sets through the familiar Statement , PreparedStatement , and ResultSet interfaces. This page covers sending queries and reading DuckDB's nested and composite types. For opening the Co
...type with isArray() , isObject() , isString() , isNumber() , isBoolean() , and isNull() , and recover the JSON source with toString() : try (ResultSet rs = stmt.executeQuery("SELECT '[1, 2, 3]'::JSON AS j")) { rs.next(); JsonNode json = (JsonNode) rs.get... - https://man.mtool.work/duckdb/2.0/clients/java/querying.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work