PDOStatement.hx 1.3 KB

1234567891011121314151617181920212223242526
  1. package php.db;
  2. import php.*;
  3. @:native('PDOStatement')
  4. extern class PDOStatement {
  5. function bindColumn(column : Dynamic, param : Dynamic, ?type : Int, ?maxlen : Int, ?driverdata : Dynamic) : Bool;
  6. function bindParam(parameter : Dynamic, variable : Dynamic, ?data_type : Int, ?length : Int, ?driver_options : Dynamic) : Bool;
  7. function bindValue(parameter : Dynamic, value : Dynamic, ?data_type : Int) : Bool;
  8. function closeCursor() : Bool;
  9. function columnCount() : Int;
  10. function debugDumpParams() : Bool;
  11. function errorCode() : String;
  12. function errorInfo() : NativeArray;
  13. function execute(input_parameters : NativeArray) : Bool;
  14. function fetch(?fetch_style : Int = 4, ?cursor_orientation : Int = 0, ?cursor_offset : Int = 0) : Dynamic;
  15. function fetchAll(?fetch_style : Int, ?fetch_argument:Dynamic, ?ctor_args:NativeArray) : NativeArray;
  16. function fetchColumn(?column_number : Int = 0) : String;
  17. function fetchObject(?class_name : String, ?ctor_args : NativeArray) : Dynamic;
  18. function getAttribute(attribute : Int) : Dynamic;
  19. function getColumnMeta(column : Int) : NativeArray;
  20. function nextRowset() : Bool;
  21. function rowCount() : Int;
  22. function setAttribute(attribute : Int, value : Dynamic) : Bool;
  23. function setFetchMode(mode : Int, ?fetch : Dynamic, ?ctorargs : NativeArray) : Bool;
  24. }