Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Simpsons Hit & Run Multiplayer Server
  • Lua API Reference
  • DB Functions

DB.Connect

Available since Version 1.0.

Establishes a connection to the SQLite database. If a database file does not exist, it will be created automatically. This function must be called before performing any database operations.

Syntax

DB.Connect()

Arguments

No arguments.

Return Values

No return values.

Examples

DB.Connect() 
-- After connecting, you can perform database operations such as creating tables, inserting data, etc.