/// <summary>Connects to the specified database and tablename.</summary> /// <param name="database">Database to connect to.</param> /// <param name="flags">Flags used to connect to the table.</param> /// <param name="layout">The table layout.</param> /// <returns>Returns a new <see cref="PgSqlTable" /> instance.</returns> public static PgSqlTable Connect(PgSqlDatabase database, TableFlags flags, RowLayout layout) { var table = new PgSqlTable(); table.Connect((IDatabase)database, flags, layout); return(table); }
/// <summary>Connects to the specified database and tablename.</summary> /// <param name="database">Database to connect to.</param> /// <param name="flags">Flags used to connect to the table.</param> /// <param name="tableName">The table to connect to.</param> /// <returns>Returns a new <see cref="PgSqlTable" /> instance.</returns> public static PgSqlTable Connect(PgSqlDatabase database, TableFlags flags, string tableName) { var table = new PgSqlTable(); table.Initialize(database, flags, tableName); return(table); }
/// <inheritdoc /> public override ITable GetTable(string tableName, TableFlags flags = default) => PgSqlTable.Connect(this, flags, tableName);