X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-mysql%2Fmysql-api.lisp;h=45328153b20bf356c3e33ef8c9f464cc5a011d32;hb=b50166ae0ba2bc09a9094c0e675ec92010b7293e;hp=91fc3c5a6998807f31520f94bee61b0f7a2b8aea;hpb=a7525d77bc9ddecb56749efb62f82e9422804d15;p=clsql.git diff --git a/db-mysql/mysql-api.lisp b/db-mysql/mysql-api.lisp index 91fc3c5..4532815 100644 --- a/db-mysql/mysql-api.lisp +++ b/db-mysql/mysql-api.lisp @@ -74,19 +74,53 @@ :named-pipe :init-command :read-default-file - :read-default-group)) + :read-default-group + :set-charset-dir + :set-charset-name + :local-infile + :protocol + :shared-memory-base-name + :read-timeout + :write-timeout + :use-result + :use-remote-connection + :use-embedded-connection + :guess-connection + :set-client-ip + :secure-auth + :report-data-truncation + :reconnect + :ssl-verify-server-cert)) + +(defvar +mysql-option-parameter-map+ + '((:connect-timeout . :uint-ptr) + (:compress . :none) + (:named-pipe . :none) + (:init-command . :char-ptr) + (:read-default-file . :char-ptr) + (:read-default-group . :char-ptr) + (:set-charset-dir . :char-ptr) + (:set-charset-name . :char-ptr) + (:local-infile . :uint-ptr) + (:protocol . :uint-ptr) + (:shared-memory-base-name . :char-ptr) + (:read-timeout . :uint-ptr) + (:write-timeout . :uint-ptr) + (:use-result . :none) + (:use-remote-connection . :none) + (:use-embedded-connection . :none) + (:guess-connection . :none) + (:set-client-ip . :char-ptr) + (:secure-auth . :boolean-ptr) + (:report-data-truncation . :boolean-ptr) + (:reconnect . :boolean-ptr) + (:ssl-verify-server-cert . :boolean-ptr))) (uffi:def-enum mysql-status (:ready :get-result :use-result)) -#+(or mysql-client-v4.1 mysql-client-v5) -(uffi:def-enum mysql-field-types - (:ready - :get-result - :use-result)) - ;;; Opaque pointers to mysql C-defined structures (uffi:def-foreign-type mysql-mysql (* :void)) (uffi:def-foreign-type mysql-mysql-res (* :void)) @@ -246,7 +280,7 @@ (uffi:def-function "mysql_options" ((mysql mysql-mysql) (option mysql-option) - (arg :cstring)) + (arg :pointer-void)) :module "mysql" :returning :int)