mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
4 lines
7.8 KiB
HTML
4 lines
7.8 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `helper` mod in crate `api`."><title>api::helper - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-e56847b5.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="api" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (fa3155a64 2025-09-30)" data-channel="nightly" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module helper</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../api/index.html">api</a><span class="version">1.0.0-beta.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module helper</a></h2><h3><a href="#macros">Module Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate api</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">api</a></div><h1>Module <span>helper</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/api/helper.rs.html#15-1996">Source</a> </span></div><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><dl class="item-table"><dt><a class="macro" href="macro.impl_column_type_functions.html" title="macro api::helper::impl_column_type_functions">impl_<wbr>column_<wbr>type_<wbr>functions</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>This macro is used to generate datatype functions
|
|
with lower style for ColumnDataTypeWrapper.</dd><dt><a class="macro" href="macro.impl_column_type_functions_with_snake.html" title="macro api::helper::impl_column_type_functions_with_snake">impl_<wbr>column_<wbr>type_<wbr>functions_<wbr>with_<wbr>snake</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>This macro is used to generate datatype functions
|
|
with snake style for ColumnDataTypeWrapper.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ColumnDataTypeWrapper.html" title="struct api::helper::ColumnDataTypeWrapper">Column<wbr>Data<wbr>Type<wbr>Wrapper</a></dt><dd>ColumnDataTypeWrapper is a wrapper of ColumnDataType and ColumnDataTypeExtension.
|
|
It could be used to convert with ConcreteDataType.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.convert_month_day_nano_to_pb.html" title="fn api::helper::convert_month_day_nano_to_pb">convert_<wbr>month_<wbr>day_<wbr>nano_<wbr>to_<wbr>pb</a></dt><dd>Converts an interval to google protobuf type [IntervalMonthDayNano].</dd><dt><a class="fn" href="fn.convert_to_pb_decimal128.html" title="fn api::helper::convert_to_pb_decimal128">convert_<wbr>to_<wbr>pb_<wbr>decimal128</a></dt><dd>Convert common decimal128 to grpc decimal128 without precision and scale.</dd><dt><a class="fn" href="fn.ddl_request_type.html" title="fn api::helper::ddl_request_type">ddl_<wbr>request_<wbr>type</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Returns the type name of the <a href="../v1/struct.DdlRequest.html" title="struct api::v1::DdlRequest">DdlRequest</a>.</dd><dt><a class="fn" href="fn.decode_json_value.html" title="fn api::helper::decode_json_value">decode_<wbr>json_<wbr>value</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.encode_json_value.html" title="fn api::helper::encode_json_value">encode_<wbr>json_<wbr>value</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.from_pb_time_ranges.html" title="fn api::helper::from_pb_time_ranges">from_<wbr>pb_<wbr>time_<wbr>ranges</a></dt><dt><a class="fn" href="fn.from_pb_time_unit.html" title="fn api::helper::from_pb_time_unit">from_<wbr>pb_<wbr>time_<wbr>unit</a></dt><dt><a class="fn" href="fn.is_column_type_value_eq.html" title="fn api::helper::is_column_type_value_eq">is_<wbr>column_<wbr>type_<wbr>value_<wbr>eq</a></dt><dd>Returns true if the pb type value is valid.</dd><dt><a class="fn" href="fn.is_semantic_type_eq.html" title="fn api::helper::is_semantic_type_eq">is_<wbr>semantic_<wbr>type_<wbr>eq</a></dt><dd>Returns true if the pb semantic type is valid.</dd><dt><a class="fn" href="fn.pb_value_to_value_ref.html" title="fn api::helper::pb_value_to_value_ref">pb_<wbr>value_<wbr>to_<wbr>value_<wbr>ref</a></dt><dt><a class="fn" href="fn.proto_value_type.html" title="fn api::helper::proto_value_type">proto_<wbr>value_<wbr>type</a></dt><dd>Returns the <a href="struct.ColumnDataTypeWrapper.html" title="struct api::helper::ColumnDataTypeWrapper">ColumnDataTypeWrapper</a> of the value.</dd><dt><a class="fn" href="fn.query_request_type.html" title="fn api::helper::query_request_type">query_<wbr>request_<wbr>type</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Returns the type name of the <a href="../v1/struct.QueryRequest.html" title="struct api::v1::QueryRequest">QueryRequest</a>.</dd><dt><a class="fn" href="fn.request_type.html" title="fn api::helper::request_type">request_<wbr>type</a></dt><dd>Returns the type name of the <a href="../v1/greptime_request/enum.Request.html" title="enum api::v1::greptime_request::Request">Request</a>.</dd><dt><a class="fn" href="fn.to_grpc_value.html" title="fn api::helper::to_grpc_value">to_<wbr>grpc_<wbr>value</a></dt><dt><a class="fn" href="fn.to_pb_time_ranges.html" title="fn api::helper::to_pb_time_ranges">to_<wbr>pb_<wbr>time_<wbr>ranges</a></dt><dd>All time_ranges must be of the same time unit.</dd><dt><a class="fn" href="fn.to_pb_time_unit.html" title="fn api::helper::to_pb_time_unit">to_<wbr>pb_<wbr>time_<wbr>unit</a></dt><dt><a class="fn" href="fn.values_with_capacity.html" title="fn api::helper::values_with_capacity">values_<wbr>with_<wbr>capacity</a></dt><dt><a class="fn" href="fn.vectors_to_rows.html" title="fn api::helper::vectors_to_rows">vectors_<wbr>to_<wbr>rows</a></dt></dl></section></div></main></body></html> |