mirror of
https://github.com/etlegacy/lua_apidoc.git
synced 2024-11-10 06:31:58 +00:00
fixed example display and typo
This commit is contained in:
parent
848c97d279
commit
72dffc1aad
1 changed files with 1 additions and 3 deletions
|
@ -62,9 +62,7 @@ The sourcename may vary according to each driver. SQLite3 uses a simple database
|
|||
|
||||
.. Some use a simple database name, like PostgreSQL, MySQL and SQLite; the ODBC driver expects the name of the DSN; the Oracle driver expects the service name; See also: PostgreSQL, and MySQL extensions.
|
||||
|
||||
-- database path
|
||||
local dbpath = string.gsub(et.trap_Cvar_Get("fs_homepath"), "\\", "/").."/"..et.trap_Cvar_Get("fs_game").."/"
|
||||
-- connection
|
||||
conn = assert(env:connect(dbpath .. "etl.db"))
|
||||
|
||||
Returns a `connection object <database.html#connection-objects>`__.
|
||||
|
@ -194,7 +192,7 @@ Besides the basic functionality provided by all drivers, the SQLite3 driver also
|
|||
env:connect(sourcename[,locktimeout])
|
||||
-------------------------------------
|
||||
|
||||
In the SQLite3 driver, this method adds an optional parameter that indicate the amount of milisseconds to wait for a write lock if one cannot be obtained immediately. See also `environment objects <database.html#environment-objects>`__.
|
||||
In the SQLite3 driver, this method adds an optional parameter that indicate the amount of milliseconds to wait for a write lock if one cannot be obtained immediately. See also `environment objects <database.html#environment-objects>`__.
|
||||
|
||||
Returns a `connection object <database.html#connection-objects>`__.
|
||||
|
||||
|
|
Loading…
Reference in a new issue