Skip to content

herebythere/sqlite_deps-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sqlite Deps - rs

This library isolates SQLite resources into a single dependency for rustlang projects.

Tests

How to use

Connection

The sqlite_deps is a facade for the certain structs in the rusqlite library.

use sqlite_deps::Connection;

Connection Pool

The following example demonstrates how to create a ConnectionPool.

use sqlite_deps::{ConnectionPool, Params};

let pool = ConnectionPool::from_params(Params {
    filepath: PathBuf::from("./filepath/to/sqlite.db"),
    number_of_connections: 4,
});

let conn = pool.get_connection()?;
let _ = pool.set_connection(conn)?;

License

sqlite_deps-rs is released under the BSD 3-Clause License

About

A utility for managing sqlite connections in threaded environments.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages