Skip to content

Commit 84ed10d

Browse files
committed
Insert copyright headers
1 parent 6fe65af commit 84ed10d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+445
-13
lines changed

AUTHORS

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Main contributors
2+
=================
3+
4+
MagicStack Inc.:
5+
Elvis Pranskevichus <[email protected]>
6+
Yury Selivanov <[email protected]>

asyncpg/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from .connection import connect # NOQA
29
from .exceptions import * # NOQA
310
from .types import * # NOQA

asyncpg/_testbase.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import asyncio
29
import atexit
310
import contextlib

asyncpg/cluster.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import asyncio
29
import os
310
import os.path

asyncpg/compat.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import functools
29
import sys
310

asyncpg/connection.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import asyncio
29
import collections
310
import getpass

asyncpg/cursor.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import collections
29

310
from . import compat

asyncpg/exceptions/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
# GENERATED FROM postgresql/src/backend/utils/errcodes.txt
29
# DO NOT MODIFY, use tools/generate_exceptions.py to update
310

asyncpg/exceptions/_base.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
##
2-
# Copyright (c) 2016 MagicStack Inc.
3-
# All rights reserved.
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
43
#
5-
# See LICENSE for details.
6-
##
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
76

87

98
import sys

asyncpg/introspection.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
INTRO_LOOKUP_TYPES = '''\
29
WITH RECURSIVE typeinfo_tree(
310
oid, ns, name, kind, basetype, elemtype, range_subtype,

asyncpg/prepared_stmt.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import json
29

310
from . import cursor

asyncpg/protocol/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from .protocol import Protocol

asyncpg/protocol/buffer.pxd

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef class Memory:
29
cdef:
310
char* buf

asyncpg/protocol/buffer.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from cpython cimport Py_buffer
29
from libc.string cimport memcpy
310

asyncpg/protocol/codecs/array.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
DEF ARRAY_MAXDIM = 6 # defined in postgresql/src/includes/c.h
29

310

asyncpg/protocol/codecs/base.pxd

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
ctypedef object (*encode_func)(ConnectionSettings settings,
29
WriteBuffer buf,
310
object obj)

asyncpg/protocol/codecs/base.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef void* codec_map[MAXSUPPORTEDOID + 1]
29
cdef dict TYPE_CODECS_CACHE = {}
310
cdef dict EXTRA_CODECS = {}

asyncpg/protocol/codecs/bits.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from asyncpg.types import BitString
29

310

asyncpg/protocol/codecs/bytea.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import decimal
29

310
_Dec = decimal.Decimal

asyncpg/protocol/codecs/datetime.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import datetime
29

310
utc = datetime.timezone.utc

asyncpg/protocol/codecs/float.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from libc cimport math
29

310

asyncpg/protocol/codecs/geometry.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from asyncpg.types import Box, Line, LineSegment, Path, Point, Polygon, Circle
29

310

asyncpg/protocol/codecs/hstore.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef hstore_encode(ConnectionSettings settings, WriteBuffer buf, obj):
29
cdef:
310
char *str

asyncpg/protocol/codecs/int.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef bool_encode(ConnectionSettings settings, WriteBuffer buf, obj):
29
if not cpython.PyBool_Check(obj):
310
raise TypeError('a boolean is required (got type {})'.format(

asyncpg/protocol/codecs/json.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef jsonb_encode(ConnectionSettings settings, WriteBuffer buf, obj):
29
cdef:
310
char *str

asyncpg/protocol/codecs/misc.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef void_encode(ConnectionSettings settings, FastReadBuffer buf):
29
# Void is zero bytes
310
buf.write_int32(0)

asyncpg/protocol/codecs/money.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef init_monetary_codecs():
29
moneyoids = [
310
MONEYOID,

asyncpg/protocol/codecs/network.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import ipaddress
29

310

asyncpg/protocol/codecs/numeric.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import decimal
29

310

asyncpg/protocol/codecs/range.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
from asyncpg import types as apg_types
29

310
# defined in postgresql/src/include/utils/rangetypes.h

asyncpg/protocol/codecs/record.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef inline record_encode_frame(ConnectionSettings settings, WriteBuffer buf,
29
WriteBuffer elem_data, uint32_t elem_count):
310
buf.write_int32(4 + elem_data.len())

asyncpg/protocol/codecs/text.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef inline as_pg_string_and_size(
29
ConnectionSettings settings, obj, char **str, ssize_t *size):
310

asyncpg/protocol/codecs/tsearch.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef init_tsearch_codecs():
29
ts_oids = [
310
TSQUERYOID,

asyncpg/protocol/codecs/txid.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
cdef txid_snapshot_encode(ConnectionSettings settings, WriteBuffer buf, obj):
29
cdef:
310
int32_t nxip

asyncpg/protocol/codecs/uuid.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
import uuid
29

310

asyncpg/protocol/consts.pxi

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (C) 2016-present the ayncpg authors and contributors
2+
# <see AUTHORS file>
3+
#
4+
# This module is part of asyncpg and is released under
5+
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6+
7+
18
DEF _BUFFER_INITIAL_SIZE = 1024
29
DEF _BUFFER_MAX_GROW = 65536
310
DEF _BUFFER_FREELIST_SIZE = 256

0 commit comments

Comments
 (0)