WaitForResult() private method

private WaitForResult ( HyenaSqliteConnection conn ) : object
conn HyenaSqliteConnection
return object
コード例 #1
0
ファイル: HyenaSqliteConnection.cs プロジェクト: knocte/hyena
        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));
        }
コード例 #2
0
ファイル: HyenaSqliteConnection.cs プロジェクト: knocte/hyena
 public long Execute(HyenaSqliteCommand command, params object [] param_values)
 {
     command.CommandType = HyenaCommandType.Execute;;
     QueueCommand(command, param_values);
     return((long)command.WaitForResult(this));
 }
コード例 #3
0
ファイル: HyenaSqliteConnection.cs プロジェクト: knocte/hyena
 // INSERT, UPDATE, DELETE queries
 public long Execute(HyenaSqliteCommand command)
 {
     command.CommandType = HyenaCommandType.Execute;;
     QueueCommand(command);
     return((long)command.WaitForResult(this));
 }
コード例 #4
0
ファイル: HyenaSqliteConnection.cs プロジェクト: knocte/hyena
 public IDataReader Query(HyenaSqliteCommand command, params object [] param_values)
 {
     command.CommandType = HyenaCommandType.Reader;
     QueueCommand(command, param_values);
     return((IDataReader)command.WaitForResult(this));
 }
コード例 #5
0
ファイル: HyenaSqliteConnection.cs プロジェクト: knocte/hyena
        // 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));
        }
コード例 #6
0
 public int Execute(HyenaSqliteCommand command, params object [] param_values)
 {
     command.CommandType = HyenaCommandType.Execute;;
     QueueCommand(command, param_values);
     return(Convert.ToInt32(command.WaitForResult(this)));
 }
コード例 #7
0
 // INSERT, UPDATE, DELETE queries
 public int Execute(HyenaSqliteCommand command)
 {
     command.CommandType = HyenaCommandType.Execute;;
     QueueCommand(command);
     return(Convert.ToInt32(command.WaitForResult(this)));
 }