-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
37 lines (28 loc) · 947 Bytes
/
Program.cs
File metadata and controls
37 lines (28 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.IO;
/*
The only purpose of this program is to let Dotnet build a platform
specific library for SQLite3 that can be used in Opensimulator.
All the program does when run is to create a connection to a data
source in memory, which in turn will be closed again without doing
anything.
See more information in the README.md.
*/
using Microsoft.Data.Sqlite;
namespace Sqlite3Driver
{
class Program
{
static void Main()
{
using (var connection = new SqliteConnection("Data Source=:memory:"))
{
connection.Open();
}
Console.WriteLine ("Opened an SQLite3 connection into memory.");
// Clean up
File.Delete(":memory:");
Console.WriteLine ("Looks good - cleaned up and done.");
}
}
}