PostgreSQL Metadata
Collection Name
|
Number of restrictions |
Remarks
|
---|---|---|
MetaDataCollections | 0 |
Returns this list. Same as using GetSchema() method without parameters.
|
ReservedWords | 0 |
Lists all reserved words used in the server.
|
AggregateFunctions | 2 |
GetSchema("AggregateFunctions") returns detailed list of all aggregate functions on the server.
|
Arguments | 5 |
GetSchema("AggregateFunctions") returns the list of the function arguments. The following restrictions may be specified:
|
Casts | 3 |
GetSchema("Casts") returns list of casts available on the server.
|
Columns | 3 |
Returns list of columns, their schema, table, type, and some extra information.
|
Databases | 3 |
Returns list of databases on the server.
|
DatasourceInformation | 1 |
Returns information about data sources.
The only restriction is schema name.
|
Domains | 9 |
Returns list of domains on the server. The restrictions for this collection are the following:
|
ForeignKeys | 4 |
Returns list of foreign keys on the server. The restrictions for this collection are the following:
|
Functions | 8 |
Returns list of functions on the server. The following restrictions may be specified:
|
Groups | 1 |
Lists all groups on the server, including IDs and members.
The only restriction is a group name.
|
Indexes | 4 |
Returns list of indexes and their details. Restricted by:
|
Languages | 2 |
Lists all languages on the server.
The first restriction is a language name, the second is OID.
|
NestedTables | 5 |
Lists nested tables on the server. Restricted by:
|
Operators | 2 |
Returns list of operators allowed on the server.
Restrict it by OID and name.
|
PrimaryKeys | 3 |
Returns list of primary keys on the server.
|
Schemas | 2 |
Returns list of schemas on the server.
|
Tables | 4 |
Returns list of tables on the server. Restrict the collection with:
|
Triggers | 6 |
Returns list of triggers on the server. Restricted by:
|
Types | 5 |
Returns list of types on the server. Restricted by:
|
Users | 1 |
Lists all users on the server.
When restricted by username, returns information about specific user.
|
Views | 4 |
Returns list of types on the server. Restricted by:
|
Npgsql 集合:
MetaDataCollections
Restrictions
Databases
Tables
Columns
Views
Users
https://github.com/npgsql/Npgsql/releases/tag/v2.2.4.3
http://npgsql.projects.pgfoundry.org/docs/api/Npgsql.NpgsqlConnection.GetSchema_overloads.html
http://www.codeproject.com/Articles/37154/PostgreSQL-PostGis-Operations
数据类型:
bit | System.Int64 | 1560 |
varbit | System.Int64 | 1560 |
bit varying | System.Int64 | 1560 |
bool | System.Boolean | 16 |
boolean | System.Boolean | 16 |
smallint | System.Int16 | 21 |
int | System.Int32 | 23 |
integer | System.Int32 | 23 |
int4 | System.Int32 | 23 |
serial | System.Int32 | 23 |
serial4 | System.Int32 | 23 |
bigint | System.Int64 | 20 |
int8 | System.Int64 | 20 |
bigserial | System.Int64 | 20 |
serial8 | System.Int64 | 20 |
float | System.Single | 700 |
real | System.Single | 700 |
float4 | System.Single | 700 |
double | System.Double | 701 |
double precision | System.Double | 701 |
decimal | System.Decimal | 1700 |
numeric | System.Decimal | 1700 |
dec | System.Decimal | 1700 |
date | System.DateTime | 1082 |
timestamp | System.DateTime | 1114 |
timestamptz | System.DateTime | 1184 |
time | System.TimeSpan | 1083 |
timetz | System.TimeSpan | 1266 |
interval | System.TimeSpan | 1186 |
char | System.String | 1042 |
character | System.String | 1042 |
uuid | System.Guid | 2950 |
varchar | System.String | 1043 |
character varying | System.String | 1043 |
text | System.String | 25 |
binary | System.Byte[] | 17 |
bytea | System.Byte[] | 17 |
cidr | System.String | 29 |
circle | System.String | 718 |
inet | System.String | 869 |
line | System.String | 628 |
lseg | System.String | 601 |
macaddr | System.String | 829 |
box | System.String | 603 |
path | System.String | 602 |
point | System.String | 600 |
polygon | System.String | 604 |
money | System.Double | 790 |
集合:
MetaDataCollections |
ReservedWords |
AggregateFunctions |
Arguments |
Casts |
CompositeTypeAttributes |
Columns |
DataSourceInformation |
DataTypes |
Databases |
Domains |
ForeignKeys |
ForeignKeyColumns |
Functions |
Groups |
Indexes |
Indexcolumns |
Languages |
NestedTables |
Operators |
OperatorClasses |
PrimaryKeys |
Rules |
Schemas |
Sequences |
Tables |
Triggers |
Types |
Users |
UserPrivileges |
UniqueKeys |
Views |
Restrictions |
Postgresql NpgsqlDbType System.DbType Enum .Net System Type
---------- ------------ ------------------ ----------------
int8 Bigint Int64 Int64
bool Boolean Boolean Boolean
bytea Bytea Binary Byte[]
date Date Date DateTime
float8 Double Double Double
int4 Integer Int32 Int32
money Money Decimal Decimal
numeric Numeric Decimal Decimal
float4 Real Single Single
int2 Smallint Int16 Int16
text Text String String
time Time Time DateTime
timetz Time Time DateTime
timestamp Timestamp DateTime DateTime
timestamptz TimestampTZ DateTime DateTime
interval Interval Object TimeSpan
varchar Varchar String String
inet Inet Object IPAddress
bit Bit Boolean Boolean
uuid Uuid Guid Guid
array Array Object Array
PostgreSQL Metadata的更多相关文章
- streamsets Processors 说明
Processors 表示对于一种数据操作处理,在pipeline中可以应用多个Processors, 同时根据不同的执行模式,可以分为独立模式的,集群模式.边缘模式(agent),以及 帮助测试的测 ...
- Asp.net Core基于MVC框架实现PostgreSQL操作
简单介绍 Asp.net Core最大的价值在于跨平台.跨平台.跨平台.重要的事情说三遍.但是目前毕竟是在开发初期,虽然推出了1.0.0 正式版,但是其实好多功能还没有完善.比方说编译时的一些文件编码 ...
- ubuntu14.04, Cloudera Manager 5.11.1, cdh5.11.1 postgresql离线部署
最近一段时间团队接到的项目需要处理的数据量非常大,之前的处理方式难以满足现有需求.最近两周前前后后折腾了不少,在搭建了hadoop+hbase+hive+spark的一个集群后,由于感觉管理和监控太麻 ...
- PostgreSQL Q&A: Building an Enterprise-Grade PostgreSQL Setup Using Open Source Tools
转自:https://www.percona.com/blog/2018/10/19/postgresql-building-enterprise-grade-setup-with-open-sour ...
- Distributed PostgreSQL on a Google Spanner Architecture – Query Layer
转自:https://blog.yugabyte.com/distributed-postgresql-on-a-google-spanner-architecture-query-layer/ Ou ...
- SQLite metadata
http://www.devart.com/dotconnect/sqlite/docs/MetaData.html https://github.com/sqlitebrowser/sqlitebr ...
- PostgreSQL源码分析之shared buffer与磁盘文件
我们知道,PostgreSQL数据库中的信息,最终是要写入持久设备的.那么PostgreSQL是怎么将信息组织存储在磁盘上的呢? Bruce Momjian有一个slide <Insider P ...
- 连接postgresql
# psycopg2 engine=create_engine('postgresql+psycopg2://scott:tiger@localhost/mydatabase')# python 连 ...
- Kubernetes stateful set讲解以及一个基于postgreSQL的具体例子
Stateful Set是Kubernetes 1.9版本新引入的一个概念,用于管理有状态的应用. Kubernetes官方文档: https://kubernetes.io/docs/concept ...
随机推荐
- 【vim】简介与基本配置
vim是一款非常强大的文字编辑软件,是各种类UNIX系统标配的文本编辑工具.相信此文的读者对它应该不会陌生,在这里就不做介绍了. 1.为什么要使用vim 在认识vim之前,我用过好多IDE:Visua ...
- Linux Shell编程、变量、控制语句
为什么要学习Shell编程 1)Linux运维工程师在进行服务器集群管理时,需要编写Shell程序来进行服务器管理. 2)对于JavaEE和Python程序员来说,工作的需要,你的老大会要求你编写一些 ...
- 详细解读KMP模式匹配算法
转载请注明出处:http://blog.csdn.net/fightlei/article/details/52712461 首先我们需要了解什么是模式匹配? 子串定位运算又称为模式匹配(Patter ...
- python全栈开发_day15_模块学习
一:模块 1)什么是模块 每一个py文件就是一个模块 导入模块,会编译执行 1.形成一个对应的pyc文件 2.产生该模块自己的店全局名称空间 3.在使用该模块的全局名称空间中产生一个名字(导入的模块名 ...
- request.getSession(true/false)的区别
javax.servlet.http.HttpServletRequest接口有两个方法:getSession(boolean)和getSession(). 具体什么区别,跟踪源码分析下,先摆出结论: ...
- Thread.Sleep(1000) 、Task.Delay(1000).Wait() 区别
public static Task Delay(int millisecondsDelay, CancellationToken cancellationToken){ if (millise ...
- destoon调用方法汇总 ---转载
根目录.模板目录和样式目录:{DT_PATH}{DT_SKIN}导入头脚:{template 'header'}{template 'footer'}对应模块首页:{$MODULE[$moduleid ...
- compact framework windows mobile wm c#代码 创建快捷方式
已经2018年了,windows mobile已经宣布不维护狠多年了,不要问我为什么还在开发windows mobile的程序,我也不想.公司有一批手持扫描枪设备依然是windows mobile的程 ...
- Mac下使用Wine安装Notepad++
下载: (链接: https://pan.baidu.com/s/1miOjLXY 密码: 2egg) 安装: 1.安装Wine 参考:http://www.cnblogs.com/EasonJim/ ...
- ubuntu下安装h2数据库
1.下载h2数据库安装包 http://www.h2database.com/html/download.html 2.解压安装文件包到指定目录 3.运行sh文件 4.访问web地址: http:// ...