mariadb

MariaDB/MySQL client library for Moonbit

MoonBit
mariadb
mysql
moon add bikallem/mariadb@0.0.1
Download zip
Author
Version
0.0.1
License
Apache-2.0
Last updated
11 months ago
Downloads
21

Dependencies

README

#mariadb - Moonbit bindings to mysql/mariadb.

Status - alpha/experimental

#
Err

pub suberror Err (String, UInt, String, SourceLoc)

MySQL error information, including the user error message, mysql error code, and mysql error message.
impl Show for Err

#
ClientFlag

type ClientFlag

see mariadb_com.h
impl BitOr for ClientFlag

#
MySql

type MySql

#
MySql::affected_rows

fn MySql::affected_rows(self : MySql) -> UInt

#
MySql::close

fn MySql::close(self : MySql) -> Unit

#
MySql::execute

fn MySql::execute(self : MySql, query : String) -> QueryResult? raise

Executes the given query and returns the result.

#
MySql::fail

#callsite(autofill(loc))
fn[T] MySql::fail(self : MySql, err_msg : String, loc~ : SourceLoc) -> T raise

Raise a Failure with the current MySQL error information as returned by the MySQL API(mysql_error() and mysql_errno())

#
MySql::real_escape_string

fn MySql::real_escape_string(self : MySql, s : String) -> String

#
QueryResult

type QueryResult

#
QueryResult::fetch_row

fn QueryResult::fetch_row(self : QueryResult) -> QueryResultRow?

#
QueryResult::free_result

fn QueryResult::free_result(self : QueryResult) -> Unit

#
QueryResult::iter

#
QueryResultRow

type QueryResultRow

#
QueryResultRow::get

fn QueryResultRow::get(self : QueryResultRow, index : Int) -> String?

#
QueryResultRow::op_get

fn QueryResultRow::op_get(self : QueryResultRow, index : Int) -> String

#
client_compress

let client_compress : ClientFlag

#
client_found_rows

let client_found_rows : ClientFlag

#
client_ignore_space

let client_ignore_space : ClientFlag

#
client_local_files

let client_local_files : ClientFlag

#
client_multi_results

let client_multi_results : ClientFlag

#
client_multi_statements

let client_multi_statements : ClientFlag

#
client_no_schema

let client_no_schema : ClientFlag

#
connect

fn connect(host~ : String, port? : UInt, user~ : String, password~ : String, database~ : String, unix_socket? : String, client_flag? : ClientFlag) -> MySql raise

Connect to MySQL with the given credentials. It sets the resulting connection character set to utf8mb4.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io