Skip to content

database models with seaorm and csv import using serde + discord slash command that reads in database.

Notifications You must be signed in to change notification settings

zikapanam/jamclub-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JamClub in Rust

This is my first project in Rust. I'm an hobbiist developper.

JamClub modules

There are three modules :

  • jamclub_seaorm which implements database models and model_controller.

  • jamclub_csvimport which implements data CSV import to the database. It uses jamclub_seaorm.

  • discord-cmd-slash : a simple discord bot that provides slash commands that sometimes read database using jamclub_seaorm to provide information replied to the end user using ephemeral embeds.

seaorm

SeaOrm provides a convenient method to generate entities from SQL Tables directly by reading the Database.

serde

Serde provides an easy way to deserialize content making some verifications on types including database enums and array of database enums (using postgres).

serenity and poise

I'm using this framework to implement the slash commands.

python ...

The csv files are downloaded using a python script (could not be done easily in RUST because I was missing a convenient library). These csv files have to be processed by RUST which is much faster.

About

database models with seaorm and csv import using serde + discord slash command that reads in database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages