From 72dffc1aad1f8ebbe33e44474d51aa42f22539ff Mon Sep 17 00:00:00 2001 From: Remy Marquis Date: Wed, 2 Jan 2019 22:38:14 +0100 Subject: [PATCH] fixed example display and typo --- database.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/database.rst b/database.rst index 4fb5953..1ae163e 100644 --- a/database.rst +++ b/database.rst @@ -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 `__. @@ -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 `__. +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 `__. Returns a `connection object `__.