feat: add foreign key support
All checks were successful
Build project / quality-and-build (push) Successful in 10m38s
Build project / SonarQube Trigger (push) Successful in 22s

This commit is contained in:
Namu
2026-06-16 22:47:22 +02:00
parent 06a23fc6d3
commit f314f3daca
8 changed files with 301 additions and 27 deletions

View File

@@ -4,8 +4,8 @@ pub fn connect(db_connection: String) -> Result<Connection> {
Connection::open(db_connection)
}
pub fn run_command(connection: &Connection, sql: String) -> Result<usize> {
connection.execute(sql.as_str(), [])
pub fn run_command(connection: &Connection, sql: String) -> Result<()> {
connection.execute_batch(sql.as_str())
}
pub fn disconnect(connection: Connection) {