mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 08:34:27 -05:00 
			
		
		
		
	WIP db provider support for Mysql and Postgres
This commit is contained in:
		@@ -99,7 +99,7 @@ Windows default
 | 
			
		||||
 | 
			
		||||
    public Creds()
 | 
			
		||||
    {
 | 
			
		||||
        Version = 4;
 | 
			
		||||
        Version = 5;
 | 
			
		||||
        Token = string.Empty;
 | 
			
		||||
        UsePrivilegedIntents = true;
 | 
			
		||||
        OwnerIds = new List<ulong>();
 | 
			
		||||
@@ -124,10 +124,15 @@ Windows default
 | 
			
		||||
 | 
			
		||||
    public class DbOptions
 | 
			
		||||
    {
 | 
			
		||||
        [Comment(@"Database type. Only sqlite supported atm")]
 | 
			
		||||
        [Comment(@"Database type. ""sqlite"", ""mysql"" and ""postgresql"" are supported.
 | 
			
		||||
Default is ""sqlite""")]
 | 
			
		||||
        public string Type { get; set; }
 | 
			
		||||
 | 
			
		||||
        [Comment(@"Connection string. Will default to ""Data Source=data/NadekoBot.db""")]
 | 
			
		||||
        [Comment(@"Database connection string.
 | 
			
		||||
You MUST change this if you're not using ""sqlite"" type.
 | 
			
		||||
Default is ""Data Source=data/NadekoBot.db""
 | 
			
		||||
Example for mysql: ""Server=localhost;Port=3306;Uid=root;Pwd=my_super_secret_mysql_password;Database=nadeko""
 | 
			
		||||
Example for postgresql: ""Server=localhost;Port=5432;User Id=postgres;Password=my_super_secret_postgres_password;Database=nadeko;""")]
 | 
			
		||||
        public string ConnectionString { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user