package freetds

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception End_results
exception End_data
exception Cancelled
exception Cmd_fail
exception Datatype_not_implemented
type binding_buffer
type context
type connection
type command
type prop_action = [
  1. | `Clear
  2. | `Get
  3. | `Set
]
type string_property = [
  1. | `Appname
  2. | `Password
  3. | `Username
]
type cmd_type = [
  1. | `Lang
  2. | `Rpc
]
type cmd_option = [
  1. | `NoRecompile
  2. | `Recompile
]
type result_type = [
  1. | `Cmd_done
  2. | `Cmd_fail
  3. | `Cmd_succeed
  4. | `Param
  5. | `Row
  6. | `Status
]
type resinfo_type = [
  1. | `Cmd_number
  2. | `Numdata
  3. | `Row_count
]
type status = [
  1. | `CanBeNull
  2. | `Identity
  3. | `NoData
  4. | `Return
]
type column = {
  1. col_name : string;
  2. col_status : status list;
  3. col_buffer : binding_buffer;
}
type location = [
  1. | `Client
  2. | `Server
]
type severity = [
  1. | `Api_fail
  2. | `Comm_fail
  3. | `Config_fail
  4. | `Fatal
  5. | `Inform
  6. | `Internal_fail
  7. | `Resource_fail
  8. | `Retry_fail
]
type sql_t = [
  1. | `Binary of string
  2. | `Bit of bool
  3. | `Datetime of string
  4. | `Decimal of string
  5. | `Float of float
  6. | `Int of int32
  7. | `Null
  8. | `Smallint of int
  9. | `String of string
  10. | `Text of string
  11. | `Tinyint of int
]
val ctx_create : unit -> context
val con_alloc : context -> connection
val con_setstring : connection -> string_property -> string -> unit
val connect : connection -> string -> unit
val close : ?force:bool -> connection -> unit
val cmd_alloc : connection -> command
val command : command -> cmd_type -> ?option:cmd_option -> string -> unit
val send : command -> unit
val results : command -> result_type
val res_info : command -> resinfo_type -> int
val fetch : command -> int
val bind : command -> ?maxlen:int -> int -> column
val buffer_contents : binding_buffer -> sql_t
val get_messages : connection -> location list -> (severity * string) list
OCaml

Innovation. Community. Security.