anitnilay20 / anitnilay20/beatrix

Implement MySQL database adapter

Aperta
#15 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
core high-priority mysql
Lingua principale
Rust
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Description
Create MySQL database adapter following the same pattern as PostgreSQL implementation.

## Requirements
- [ ] Implement Database trait for MySQL
- [ ] Add MySQL-specific connection handling
- [ ] Support MySQL connection strings
- [ ] Handle MySQL-specific SQL syntax
- [ ] Add proper identifier quoting (backticks)
- [ ] Write comprehensive tests

## Acceptance Criteria
- MySQL adapter implements Database trait
- Proper connection management with mysql_async or sqlx
- MySQL-specific SQL generation
- Feature flag for MySQL support

## Files to create
- `beatrix_core/src/relational/db/mysql.rs`
- Update `beatrix_core/Cargo.toml` with MySQL dependencies

## Example Usage
```rust
use beatrix::relational::MySQL;

let db = MySQL::new("mysql://user:pass@localhost/db").await?;
let users = User::select().fetch_all(&db).await?;
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.