自行车ð²-数据库(Rust,Grpc,RocksDB)
#编程 #database #rust #nosql

自行车ð²是定义数据库模式的框架,其访问模式被生成代码并将其编译到每个服务器二进制中。

我们正在努力减少运行时的动态查询解析。

为什么要这个名字?

“一台计算机对我来说是什么是我们想到的最引人注目的工具,这相当于我们的头脑的自行车” - 史蒂夫·乔布斯

自行车是有用的复杂性的隐喻,也是历史上最具影响力的发明之一。这也是框架解剖结构的有趣类比:

  • 车轮(运输):grpc
  • 框架(存储引擎):rocksdb
  • 踏板,齿轮,车把,断裂等(逻辑):Rust

GitHub logo ordinarylabs / bicycle

自行车ð²是定义数据库模式的框架,其访问模式被生成代码并将其编译到每个服务器二进制中。

Bicycle 🚲

Bicycle 🚲 is a framework for defining database schemas whose access patterns are generated as code and compiled into each server binary.

We're striving to reduce dynamic query parsing at run time.

Why the name?

"What a computer is to me is it's the most remarkable tool that we've ever come up with, and it's the equivalent of a bicycle for our minds" - Steve Jobs

The Bicycle is a metaphor for useful complexity, and one of the most influential inventions in history It is also an interesting analogy for the anatomy of the framework:

  • Wheels (transport): gRPC
  • Frame (storage engine): RocksDB
  • Pedals, gears, handlebars, breaks, etc. (logic): Rust

Usage

A Bicycle schema is defined in a simple koude0 file like so:

// schema.proto
syntax = "proto3"
package bicycle;

message Dog {
  string pk = 1;

  string name = 2;
  uint32 age = 3

Robert ByeUnsplash

照片