41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Npgsql;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Voile.Common.Reflection;
|
|
using Voile.Patchouli.Data;
|
|
using Voile.Patchouli.Reflection;
|
|
|
|
namespace Voile.Storage.Postgresql
|
|
{
|
|
[VoilePlugin]
|
|
[VoilePluginId(4)]
|
|
internal class PostgresqlDataStorageFactory : IVoileDataStorageFactory
|
|
{
|
|
public IVoileDataStorage CreateDataStorage()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private NpgsqlConnectionStringBuilder ncsb;
|
|
|
|
[Description("The IP Adress or Hostname on which PostgreSQL is running.")]
|
|
public string Host { get; set; }
|
|
|
|
[Description("The Port number on which PostgreSQL is listening on.")]
|
|
public ushort Port { get; set; }
|
|
|
|
[Description("The username to login with.")]
|
|
public string Username { get; set; }
|
|
|
|
[Description("The password to login with.")]
|
|
public string Password { get; set; }
|
|
|
|
[Description("The database inside PostgreSQL to connect to")]
|
|
public string DatabaseName { get; set; }
|
|
}
|
|
}
|