Es sql open
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xsql open [edit] DescriptionOpens or creates a SQLite database file by the name of es_db-name.sqldb in the directory mentioned. [edit] Parameters
[edit] ExamplesSee the ServerMail example in ES v1.5 for a detailed example. // open a SQLite database file es_sql open mydb |myscriptdir // other es_sql query commands // ... es_sql close mydb Or, if you don't want to save to a file: // open a SQLite database file, but it will be lost when server shuts down or the DB is closed es_sql open memoryonlydb ":memory:" // other es_sql query commands // ... es_sql close memoryonlydb
[edit] Notes
[edit] See also
|
