# Interface ISQLiteDatabase

Minimal interface for better-sqlite3 Database. Compatible with the better-sqlite3 package API.

interface ISQLiteDatabase {
exec(sql: string): void;
prepare<T = unknown>(sql: string): ISQLiteStatement<T>;
close(): void;
}

- Defined in packages/nexus-agents/src/core/types/database-types.ts:55

##### Index

### Methods

exec
prepare
close

## Methods

### exec

- exec(sql: string): void

  Execute raw SQL statements (typically for DDL or multiple statements).

  #### Parameters

  - sql: string

  #### Returns void

  - Defined in packages/nexus-agents/src/core/types/database-types.ts:59

### prepare

- prepare<T = unknown>(sql: string): ISQLiteStatement<T>

  Prepare a parameterized statement for execution.

  #### Type Parameters

  - T = unknown

  #### Parameters

  - sql: string

  #### Returns ISQLiteStatement<T>

  - Defined in packages/nexus-agents/src/core/types/database-types.ts:64

### close

- close(): void

  Close the database connection.

  #### Returns void

  - Defined in packages/nexus-agents/src/core/types/database-types.ts:69