Module: DB::MariaDB::Native
- Extended by:
- FFI::Module::ConfigTool, FFI::Module::Library, FFI::Module::Loader
- Defined in:
- lib/db/mariadb/native.rb,
lib/db/mariadb/native/field.rb,
lib/db/mariadb/native/types.rb,
lib/db/mariadb/native/result.rb,
lib/db/mariadb/native/connection.rb
Defined Under Namespace
Modules: IO, Types Classes: Connection, Field, Result
Constant Summary collapse
- Type =
ffi_define_enumeration(:field_type, [ :decimal, :tiny, :short, :long, :float, :double, :null, :timestamp, :longlong, :int24, :date, :time, :datetime, :year, :newdate, :varchar, :bit, :json, 245, :newdecimal, :enum, :set, :tiny_blob, :medium_blob, :long_blob, :blob, :var_string, :string, :geometry, ])
- DEFAULT_TYPES =
{ # Pseudo types: primary_key: Types::Integer.new('BIGINT AUTO_INCREMENT PRIMARY KEY'), foreign_key: Types::Integer.new('BIGINT'), text: Types::Text.new("TEXT"), string: Types::Text.new("VARCHAR(255)"), # Aliases smallint: Types::Integer.new("SHORT"), integer: Types::Integer.new("INTEGER"), bigint: Types::Integer.new("LONG"), # Native types: decimal: Types::Decimal.new, boolean: Types::Boolean.new, tiny: Types::Integer.new("TINY"), short: Types::Integer.new("SHORT"), long: Types::Integer.new("LONG"), float: Types::Float.new, double: Types::Float.new("DOUBLE"), timestamp: Types::DateTime.new("TIMESTAMP"), date: Types::Date.new, datetime: Types::DateTime.new("DATETIME"), year: Types::Integer.new("YEAR"), newdate: Types::DateTime.new("DATETIME"), bit: Types::Integer.new("BIT"), json: Types::JSON.new, newdecimal: Types::Decimal.new, enum: Types::Symbol.new, set: Types::Integer.new("SET"), }
- MYSQL_PROTOCOL_TCP =
1
- MYSQL_OPT_PROTOCOL =
9
- MYSQL_OPT_NONBLOCK =
6000
- MYSQL_WAIT_READ =
1
- MYSQL_WAIT_WRITE =
2
- MYSQL_WAIT_EXCEPT =
4
- MYSQL_WAIT_TIMEOUT =
8
- CLIENT_COMPRESS =
0x00000020
- CLIENT_LOCAL_FILES =
0x00000080
- CLIENT_MULTI_STATEMENT =
0x00010000
- CLIENT_MULTI_RESULTS =
0x00020000