• Stars
    star
    194
  • Rank 200,219 (Top 4 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

typed-sql

Latest Version Rust Documentation LICENSE

use typed_sql::{Query, Table, ToSql};

#[derive(Table)]
struct User {
    id: i64,
    name: String
}

let stmt = User::table()
    .select()
    .filter(|user| user.id.neq(6).and(user.id.gt(3)))
    .group_by(|user| user.name)
    .order_by(|user| user.name.then(user.id.ascending()))
    .limit(5);

assert_eq!(
    stmt.to_sql(),
    "SELECT * FROM users \
    WHERE users.id != 6 AND users.id > 3 \
    GROUP BY users.name \
    ORDER BY users.name,users.id ASC \
    LIMIT 5;"
);

More Repositories

1

staff

Music theory and score rendering library with midi, notes, chords, scales, and more.
Rust
207
star
2

futures-codec

Utilities for encoding and decoding frames with async/await
Rust
73
star
3

viewbuilder

Cross-platform user interface framework for Rust.
Rust
66
star
4

conduct

A cross-platform driver for Tauri in Haskell
HTML
45
star
5

shmonad

A shell prompt with infinite customization
Haskell
38
star
6

engrave

Browser based code editor
Rust
30
star
7

bevy-compose

Rust
30
star
8

lookbook

Rust
28
star
9

embedded-flight

Rust
26
star
10

async-hal

Rust
25
star
11

view-monad

Haskell
23
star
12

hoot

Opinionated package manager for haskell (WIP)
Haskell
17
star
13

dioxus-spring

Animation framework for Dioxus
Rust
15
star
14

dioxus-lazy

Virtualized components for Dioxus
Rust
15
star
15

dotfiler

A templating system for unix configuration files
Rust
11
star
16

cdk-rs

Rust
10
star
17

dioxus-use-gesture

Rust
9
star
18

voxy

A voxel engine made with Bevy
Rust
9
star
19

text-svg

Rust
9
star
20

uring-rs

A pure Rust library for io_uring
Rust
6
star
21

dioxus-tray

System-tray applications with Dioxus
Rust
6
star
22

dotfiles

A collection of my linux configuration files
Nix
5
star
23

woofer

Rust
4
star
24

dioxus-use-mounted

Rust
3
star
25

iso-tp

Rust
3
star
26

quickmaths

A collection of algorithms for generic mathematics in Rust
Rust
3
star
27

scripting

Rust
3
star
28

bevy-mod-sequencer

Rust
3
star
29

ui

A reactive graph in Haskell
Haskell
2
star
30

async-native-timer

Async/await Timers with native implementations
Rust
2
star
31

permissions

Rust
1
star
32

sys-call-rs

System call macro for Rust
Rust
1
star
33

crates

Rust
1
star
34

snowman-rs

Asynchronously generate Twitter snowflake ids in rust
Rust
1
star
35

tide-cors

Cross-origin resource sharing (CORS) middleware for Tide applications
Rust
1
star
36

circus-rs

Quantum circuit simulator in Rust
Rust
1
star
37

flex

Haskell
1
star
38

advent-of-code-2022

Haskell
1
star
39

stream-reduce

reduce() for streams in Rust
Rust
1
star
40

campus-texter

Sends graded assignments from Infinite Campus with SMS
Python
1
star
41

wavedash

A WASM runtime for Bevy mods
Rust
1
star
42

xilem-material

Material You components for xilem
Rust
1
star
43

car-api

Rust
1
star
44

dioxus-menu

Rust
1
star
45

web-slinger

HTML
1
star
46

visualizer

Rust
1
star