%% CouchDB %% Copyright (C) 2006 Damien Katz %% %% This program is free software; you can redistribute it and/or %% modify it under the terms of the GNU General Public License %% as published by the Free Software Foundation; either version 2 %% of the License, or (at your option) any later version. %% %% This program is distributed in the hope that it will be useful, %% but WITHOUT ANY WARRANTY; without even the implied warranty of %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %% GNU General Public License for more details. %% %% You should have received a copy of the GNU General Public License %% along with this program; if not, write to the Free Software %% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -define(NON_REP_DOC_PREFIX, "_local/"). -define(DESIGN_DOC_PREFIX0, "_design"). -define(DESIGN_DOC_PREFIX, "_design/"). -define(STEW_DOC_PREFIX0, "_pot"). -define(STEW_DOC_PREFIX, "_pot/"). -define(DEFAULT_ATTACHMENT_CONTENT_TYPE, "application/octet-stream"). -record(doc_info, { id = "", rev = "", update_seq = 0, summary_pointer = nil, conflict_revs = [], deleted_conflict_revs = [], deleted = false }). -record(doc, { id = "", revs = [], % in the form [{RevId, Available}, ...] % the json body object. body = {obj, []}, % each attachment contains: % {data, Type, <>} % or: % {pointer, Type, {FileHandle, StreamPointer, Length}} attachments = [], deleted = false, % key/value tuple of meta information obtained via doc_open Options meta = [] }).