mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
enable indices in Dart SDK
This commit is contained in:
parent
d1eab18670
commit
6b97f2584f
1 changed files with 2 additions and 2 deletions
|
|
@ -23,10 +23,10 @@ pub struct ConnectArgs {
|
|||
pub async fn connect(args: ConnectArgs) -> RustConnection {
|
||||
let database = if args.url == ":memory:" {
|
||||
let io: Arc<dyn turso_core::IO> = Arc::new(turso_core::MemoryIO::new());
|
||||
turso_core::Database::open_file(io, args.url.as_str(), false, false)
|
||||
turso_core::Database::open_file(io, args.url.as_str(), false, true)
|
||||
} else {
|
||||
let io: Arc<dyn turso_core::IO> = Arc::new(turso_core::PlatformIO::new().unwrap());
|
||||
turso_core::Database::open_file(io, args.url.as_str(), false, false)
|
||||
turso_core::Database::open_file(io, args.url.as_str(), false, true)
|
||||
}
|
||||
.unwrap();
|
||||
let connection = database.connect().unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue