- Notifications
You must be signed in to change notification settings - Fork 22
feat: support decimal #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 61 commits
9096533 74f6f62 3c87c76 2883ea2 457b77a 3d8645b 139e92d 4bf9bfc 17f699b a583839 c7f19af 6cc4237 4aa3b14 fb8ac1e 2095903 984a236 ce0fe17 d2ee26c 4c4b9af 4a6a07c cf425b5 2180a9f 14b54eb fe7cceb 44fe751 1b69994 36f534e b11912a 147bab4 77520ef d9ef50d 6d19bd9 f47ee4f 23d51b2 1f889e7 466b26d 8dad866 de1bba3 12882be cf1dd4d f1624df 9d564a8 e63da89 ed83ff2 ed7a984 727cf09 d730bad e6140e3 1ebc6e6 0764846 e2fa211 3bc2e3a 17f2427 af76951 9489414 ba6744c 61f16a7 61ff7ec 59cb32e b2cedfd 1ede6d7 e86a18d 5b17715 76104aa fec2164 dfb9fd4 23329b0 73d9f0d 7af54e1 a2e9fbc 8ba6114 2bb27ce 315e934 88b9bd9 dd4c86d 61b84bc 5213f8e 992917b 588300e 2d0bd53 364632f e76724d 9ec63c8 72851e8 fdb7342 9b37990 bd7c7f9 d938a85 a396970 52a79b9 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -10,7 +10,7 @@ static bool example(const char* host, const char* port) | |
| line_sender* sender = NULL; | ||
| line_sender_buffer* buffer = NULL; | ||
| char* conf_str = | ||
| concat("tcp::addr=", host, ":", port, ";protocol_version=2;"); | ||
| concat("tcp::addr=", host, ":", port, ";protocol_version=3;"); | ||
| if (!conf_str) | ||
| { | ||
| fprintf(stderr, "Could not concatenate configuration string.\n"); | ||
| | @@ -51,7 +51,9 @@ static bool example(const char* host, const char* port) | |
| if (!line_sender_buffer_symbol(buffer, side_name, side_value, &err)) | ||
| goto on_error; | ||
| | ||
| if (!line_sender_buffer_column_f64(buffer, price_name, 2615.54, &err)) | ||
| line_sender_utf8 price_value = QDB_UTF8_LITERAL("2615.54"); | ||
| if (!line_sender_buffer_column_dec_str( | ||
| buffer, price_name, price_value, &err)) | ||
| ||
| goto on_error; | ||
| | ||
| if (!line_sender_buffer_column_f64(buffer, amount_name, 0.00044, &err)) | ||
| | @@ -72,6 +74,7 @@ static bool example(const char* host, const char* port) | |
| if (!line_sender_flush(sender, buffer, &err)) | ||
| goto on_error; | ||
| | ||
| line_sender_buffer_free(buffer); | ||
| line_sender_close(sender); | ||
| | ||
| return true; | ||
| | ||
Uh oh!
There was an error while loading. Please reload this page.