2021-01-02 13:10:00 -05:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-20 21:41:37 -05:00
|
|
|
/**
|
|
|
|
** \defgroup database_js Database Interface
|
|
|
|
** Exposes a key-value store interface to script.
|
|
|
|
** @{
|
|
|
|
*/
|
|
|
|
|
2024-03-04 12:23:00 -05:00
|
|
|
/** A JS context. */
|
2023-05-21 17:36:51 -04:00
|
|
|
typedef struct JSContext JSContext;
|
2021-01-02 13:10:00 -05:00
|
|
|
|
2024-03-04 12:23:00 -05:00
|
|
|
/**
|
|
|
|
** Register the database script interface.
|
|
|
|
** @param context The JS context.
|
|
|
|
*/
|
2023-03-11 08:57:17 -05:00
|
|
|
void tf_database_register(JSContext* context);
|
2024-02-20 21:41:37 -05:00
|
|
|
|
|
|
|
/** @} */
|