BerkeleyDB cs 中的复合键

发布于 2024-12-20 16:12:08 字数 189 浏览 4 评论 0原文

我想使用 BerkeleyDB 应用程序构建一个 B 树文件,我的密钥由结构中包含的三个字段组成:

struct Key
{
    int PC;
    DateTime D;
    int Path;
}

问题是如何在 BerkeleyDB 中使用 csharp 编程创建这样的复合密钥。

I want to build a B-tree file using the BerkeleyDB application, my key is composed of three fields which contained in a structure:

struct Key
{
    int PC;
    DateTime D;
    int Path;
}

The question is how to create such composite key by using csharp programming in BerkeleyDB.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

国际总奸 2024-12-27 16:12:08

我不使用 c#,但你必须自己从三把钥匙中制作一把。只需将整个结构写为固定长度的密钥即可。

I don't use c#, but you will have to make one key out of the three yourself. Just write out the entire structure as a fixed length key.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文