cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
orm_socket.h
Go to the documentation of this file.
1#ifndef CWIST_CORE_ORM_SOCKET_H
2#define CWIST_CORE_ORM_SOCKET_H
3
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
26int cwist_db_transfer_sqlite_to_socket(const char *path);
29
30int cwist_orm_socketpair_cloexec(int domain, int type, int protocol, int sv[2]);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* CWIST_CORE_ORM_SOCKET_H */
Tiny ORM over a SQL socket stream.
struct cwist_orm cwist_orm_t
Opaque ORM session handle.
Definition orm.h:36
int cwist_db_transfer_sqlite_to_socket(const char *path)
Open a SQLite database behind an in-process SQL socket.
Definition orm_socket.c:473
cwist_orm_t * cwist_orm_open_socket(int sock)
Wrap a connected socket descriptor in an ORM session.
Definition orm.c:145
int cwist_orm_socketpair_cloexec(int domain, int type, int protocol, int sv[2])
Definition orm_socket.c:454
void cwist_orm_close_socket(cwist_orm_t *orm)
Close an ORM session and release its socket.
Definition orm.c:163