public T Query <T> (HyenaSqliteCommand command, params object [] param_values) { command.CommandType = HyenaCommandType.Scalar; QueueCommand(command, param_values); object result = command.WaitForResult(this); return((T)SqliteUtils.FromDbFormat(typeof(T), result)); }
public long Execute(HyenaSqliteCommand command, params object [] param_values) { command.CommandType = HyenaCommandType.Execute;; QueueCommand(command, param_values); return((long)command.WaitForResult(this)); }
// INSERT, UPDATE, DELETE queries public long Execute(HyenaSqliteCommand command) { command.CommandType = HyenaCommandType.Execute;; QueueCommand(command); return((long)command.WaitForResult(this)); }
public IDataReader Query(HyenaSqliteCommand command, params object [] param_values) { command.CommandType = HyenaCommandType.Reader; QueueCommand(command, param_values); return((IDataReader)command.WaitForResult(this)); }
// TODO special case for single object param to avoid object [] // SELECT multiple column queries public IDataReader Query(HyenaSqliteCommand command) { command.CommandType = HyenaCommandType.Reader; QueueCommand(command); return((IDataReader)command.WaitForResult(this)); }
public int Execute(HyenaSqliteCommand command, params object [] param_values) { command.CommandType = HyenaCommandType.Execute;; QueueCommand(command, param_values); return(Convert.ToInt32(command.WaitForResult(this))); }
// INSERT, UPDATE, DELETE queries public int Execute(HyenaSqliteCommand command) { command.CommandType = HyenaCommandType.Execute;; QueueCommand(command); return(Convert.ToInt32(command.WaitForResult(this))); }