| pg / python. PG / PythonÀº PostgreSQL¿¡ ´ëÇÑ ÆÄÀ̽ã ÀÎÅÍÆäÀ̽º Çâ»óÀ» Çâ»ó½ÃÅ°´Â ¿ÀÇ ¼Ò½º ÇÁ·ÎÁ§Æ®ÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
pg / python. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- pg/python project
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://python.projects.postgresql.org/project/pg_greentrunk.html
pg / python. ű×
pg / python. ¼³¸í
PG / PythonÀº PostgreSQL¿¡ ´ëÇÑ Python ÀÎÅÍÆäÀ̽º Çâ»óÀ» Çâ»ó½ÃÅ°´Â ¿ÀÇ ¼Ò½º ÇÁ·ÎÁ§Æ®ÀÔ´Ï´Ù. PG / PythonÀº PostGresql.quick ½ÃÀÛ¿¡ ´ëÇÑ Python ÀÎÅÍÆäÀ̽ºÀÇ °³¼±À» ÇâÇÑ ¿·ÁÀÖ´Â ¼Ò½º ÇÁ·ÎÁ§Æ®ÀÔ´Ï´Ù. PG_ProbosCissql.Interface.proboscis.prime·Î pg_proboscissy_install pg_proboscisconceas.interface.proboscis.prime·Î pqcon = pq.connector (user = 'root) ', host ='localhost ', port = 5432, ssl = true, # ¼±ÅÃÀû. ¿øÇÏ´Â °æ¿ì¿¡¸¸ true·Î ¼³Á¤ÇϽʽÿÀ. µ¥ÀÌÅͺ£À̽º ='pgsql ', ¿¬°á * Ŭ·¡½º * ¿¬°áÀ» »ý¼ºÇÕ´Ï´Ù. instantiated.c = con () c # µ¥ÀÌÅͺ£À̽º¸¦ Äõ¸®ÇսôÙ; °á°ú´Â vary.q = c.query ( "PG_PROC¿¡¼ pRONANG = $ 1¿¡¼ ¼±Åà *¿¡¼ ¼±Åà *¿¡¼ ¼±ÅÃÇÕ´Ï´Ù) p : Àμâ x ( 'byteain': name, '11'::) oid, '1':: int4, '12':: oid, false, false, true, false, 'i':: char, '1':: int2, '17':: oid, '2275':: oidvector, none, none, byteain ':: text,'- ':: bytea,'_ x / pgsql} ':: _ aclitem) Àμâ À¯Çü (x) (Formance name, pronameSpace oid, prowner int4, protang oid, proisagg bool) , Prosecdef Bool, Proisstrict Bool, Proretset Bool, ÇÁ·Î ·¿Æ® ŸÀÔ OID, ProRetType OidVector, Proargnames _Text, ProCRC ÅؽºÆ®, Probin Bytea, ProAcl _aclitem,) Print REB (X ''Byteain ':: ManagnPrint rv (x ) 'byteain':: namefor y x : print repr (y) 'byteain':: name'11 ':: oid'1':: int4'12 ':: oidfalsefalsetRuefalse'i': : char'1 ':: int2'17':: oid'2275 ':: oidVectornone'ByTeaIn':: text '-':: bytea '{= x / pgsql}':: _ _ aclitemprint x 0] = x / pgsqlease ÀÚ¼¼ÇÑ ³»¿ëÀº ¹®¼¸¦ È®ÀÎÇϽʽÿÀ.ÀÌ ¸±¸®½ºÀÇ »õ·Î¿î ±â´É : ¡¤ API°¡ ¾ÈÁ¤µÇ¾ú½À´Ï´Ù. ¡¤ ¸¹Àº ¹ö±×°¡ ¼öÁ¤µÇ¾úÀ¸¸ç ¸¹Àº ±â´ÉÀÌ ÀÖ½À´Ï´Ù. ´Ù½Ã ¿Ï¼ºµÇ¾ú½À´Ï´Ù.
pg / python. °ü·Ã ¼ÒÇÁÆ®¿þ¾î