37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import init from "./functions/init";
|
|
import DbDelete from "./lib/mariadb/db-delete";
|
|
import DbInsert from "./lib/mariadb/db-insert";
|
|
import DbSelect from "./lib/mariadb/db-select";
|
|
import DbSQL from "./lib/mariadb/db-sql";
|
|
import DbUpdate from "./lib/mariadb/db-update";
|
|
import grabDbSchema from "./utils/grab-db-schema";
|
|
import grabJoinFieldsFromQueryObject from "./utils/grab-join-fields-from-query-object";
|
|
|
|
init();
|
|
|
|
const BunMariaDB = {
|
|
select: DbSelect,
|
|
insert: DbInsert,
|
|
update: DbUpdate,
|
|
delete: DbDelete,
|
|
sql: DbSQL,
|
|
utils: {
|
|
grab_db_schema: grabDbSchema,
|
|
grab_join_fields_from_query_object: grabJoinFieldsFromQueryObject,
|
|
},
|
|
} as const;
|
|
|
|
export default BunMariaDB;
|
|
|
|
export type {
|
|
BunMariaDBConfig,
|
|
BUN_MARIADB_DatabaseSchemaType,
|
|
BUN_MARIADB_TableSchemaType,
|
|
BUN_MARIADB_FieldSchemaType,
|
|
BUN_MARIADB_IndexSchemaType,
|
|
BUN_MARIADB_UniqueConstraintSchemaType,
|
|
BUN_MARIADB_ForeignKeyType,
|
|
DBResponseObject,
|
|
ServerQueryParam,
|
|
} from "./types";
|