Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynahash: init support for Postgres Hash tables. #22

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions src/pgzx.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,32 @@

const std = @import("std");

// pub const Build = @import("pgzx/build.zig");

// Export common set of postgres headers.
pub const c = @import("pgzx/c.zig");

// Utility functions for working with the PostgreSQL C API.
pub const bgworker = @import("pgzx/bgworker.zig");

pub const collections = @import("pgzx/collections.zig");
pub const PointerListOf = collections.list.PointerListOf;
pub const SList = collections.slist.SList;
pub const DList = collections.dlist.DList;
pub const HTab = collections.htab.HTab;
pub const HTabIter = collections.htab.HTabIter;
pub const StringHashTable = collections.htab.StringHashTable;
pub const KVHashTable = collections.htab.KVHashTable;

pub const elog = @import("pgzx/elog.zig");

pub const err = @import("pgzx/err.zig");
pub const PGError = err.PGError;
pub const pgRethrow = err.pgRethrow;

pub const fmgr = @import("pgzx/fmgr.zig");
pub const PG_MODULE_MAGIC = fmgr.PG_MODULE_MAGIC;
pub const PG_FUNCTION_V1 = fmgr.PG_FUNCTION_V1;
pub const PG_FUNCTION_INFO_V1 = fmgr.PG_FUNCTION_INFO_V1;

pub const lwlock = @import("pgzx/lwlock.zig");
pub const mem = @import("pgzx/mem.zig");
pub const pq = @import("pgzx/pq.zig");
Expand All @@ -25,17 +41,4 @@ pub const utils = @import("pgzx/utils.zig");
pub const intr = @import("pgzx/interrupts.zig");
pub const testing = @import("pgzx/testing.zig");

// data structures
pub const collections = @import("pgzx/collections.zig");

pub const guc = utils.guc;

pub const PGError = err.PGError;
pub const pgRethrow = err.pgRethrow;

pub const PG_MODULE_MAGIC = fmgr.PG_MODULE_MAGIC;
pub const PG_FUNCTION_V1 = fmgr.PG_FUNCTION_V1;
pub const PG_FUNCTION_INFO_V1 = fmgr.PG_FUNCTION_INFO_V1;

pub const list = collections.list;
pub const PointerListOf = list.PointerListOf;
1 change: 1 addition & 0 deletions src/pgzx/collections.zig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub const list = @import("collections/list.zig");
pub const slist = @import("collections/slist.zig");
pub const dlist = @import("collections/dlist.zig");
pub const htab = @import("collections/htab.zig");
Loading