exasol.lua
--- This module allows accessing an Exasol database. -- @module luasql.exasol local exasol = {} local Environment = require("luasql.exasol.Environment") -- [impl->dsn~logging-with-remotelog~1] local log = require("remotelog") local constants = require("luasql.exasol.constants") local util = require("luasql.exasol.util") --- The version of this module exasol.VERSION = constants.VERSION --- The value returned by queries to indicate an SQL `NULL` value. -- Note: we need to define the NULL constant in separate module constants to break cyclic dependencies. exasol.NULL = constants.NULL --- Create a new environment that allows connecting to an Exasol database. -- @treturn luasql.exasol.Environment new environment function exasol.exasol() -- [impl -> dsn~luasql-entry-point~0] log.trace("Created new luasql.exasol environment") return Environment:new() end return util.read_only(exasol)