sharp-chat/SharpChat.Common/Database/Null/NullDatabaseReader.cs

93 lines
1.8 KiB
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Database.Null {
public class NullDatabaseReader : IDatabaseReader {
public void Dispose() {
GC.SuppressFinalize(this);
}
public string GetName(int ordinal) {
return string.Empty;
}
public int GetOrdinal(string name) {
return 0;
}
public object GetValue(int ordinal) {
return null;
}
public object GetValue(string name) {
return null;
}
public bool IsNull(int ordinal) {
return true;
}
public bool IsNull(string name) {
return true;
}
public bool Next() {
return false;
}
public float ReadF32(int ordinal) {
return 0f;
}
public float ReadF32(string name) {
return 0f;
}
public double ReadF64(int ordinal) {
return 0d;
}
public double ReadF64(string name) {
return 0d;
}
public short ReadI16(int ordinal) {
return 0;
}
public short ReadI16(string name) {
return 0;
}
public int ReadI32(int ordinal) {
return 0;
}
public int ReadI32(string name) {
return 0;
}
public long ReadI64(int ordinal) {
return 0;
}
public long ReadI64(string name) {
return 0;
}
public string ReadString(int ordinal) {
return string.Empty;
}
public string ReadString(string name) {
return string.Empty;
}
public byte ReadU8(int ordinal) {
return 0;
}
public byte ReadU8(string name) {
return 0;
}
}
}