MySQL/OTP – MySQL client library for Erlang/OTP
Copyright (C) 2014 Viktor Söderqvist
This file is part of MySQL/OTP.
MySQL/OTP is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see
This library is free software licensed under the GNU LGPL which allows you to
use it in non-free applications and applications with other licenses. This
documentation is generated from the source code and thus goes under the same
license as the library itself.
MySQL | Erlang | Example |
---|---|---|
INT, TINYINT, etc. | `integer()' | `42' |
VARCHAR, TEXT, etc. | `iodata()' | `<<"foo">>, "bar"' |
FLOAT, DOUBLE | `float()' | `3.14' |
DECIMAL | `binary()' | `<<"3.140">>' |
DATETIME, TIMESTAMP | `calendar:datetime()' | `{{2014, 11, 18}, {10, 22, 36}}' |
DATE | `calendar:date()' | `{2014, 11, 18}' |
TIME | `{Days, calendar:time()}' | `{0, {10, 22, 36}}' |
NULL | `null' | `null' |