C# Class VxDbSchema, versaplex

Inheritance: ISchemaBackend
Mostra file Open project: apenwarr/versaplex Class Usage Examples

Public Methods

Method Description
Csv2Inserts ( string tablename, string csvtext ) : string
Dispose ( ) : void
DropSchema ( ) : VxSchemaErrors
DropSchema ( IEnumerable keys ) : VxSchemaErrors
DropSchemaElement ( string key ) : VxSchemaError
Get ( IEnumerable keys ) : VxSchema
GetChecksums ( ) : VxSchemaChecksums
GetSchemaData ( string tablename, int seqnum, string where, string>.Dictionary replaces, List skipfields ) : string
Normalize ( string text ) : string
Put ( VxSchema schema, VxSchemaChecksums sums, VxPutOpts opts ) : VxSchemaErrors
PutSchemaData ( string tablename, string text, int seqnum ) : void
StripMatchingParens ( string s ) : string
VxDbSchema ( WvDbi _dbi ) : System
WriteSchemaData ( StreamWriter sw, string tablename, int seqnum, string where, string>.Dictionary replaces, List skipfields ) : void
bin2hex ( byte data ) : string
wvmoniker_register ( ) : void

Private Methods

Method Description
AddIndexChecksumsToTables ( VxSchemaChecksums sums ) : void
AddIndexesToTables ( VxSchema schema, List names ) : void
ApplyChangedColumn ( VxSchemaTable table, VxSchemaTableElement oldelem, VxSchemaTableElement newelem, VxSchemaError expected_err, VxPutOpts opts ) : VxSchemaErrors
DbiExec ( string query ) : int
DbiExecRollback ( string trans_name ) : bool
DbiSelect ( string query ) : WvSqlRows
DropTableColumn ( VxSchemaTable table, VxSchemaTableElement col ) : void
EscapeSchemaElementName ( string name ) : string
GetDropCommand ( string type, string name ) : string
GetNullableColumn ( VxSchemaTableElement elem ) : VxSchemaTableElement
GetProcChecksums ( VxSchemaChecksums sums, string type, int encrypted ) : void
GetTableChecksums ( VxSchemaChecksums sums ) : void
GetXmlSchemaChecksums ( VxSchemaChecksums sums ) : void
PutSchemaElement ( VxSchemaElement elem, VxPutOpts opts ) : VxSchemaError
PutSchemaTable ( VxSchemaTable curtable, VxSchemaTable newtable, VxPutOpts opts ) : VxSchemaErrors
PutSchemaTableIndex ( string key, VxSchemaTable table, VxSchemaTableElement elem ) : VxSchemaError
PutSchemaTables ( List tables, VxSchema newschema, VxSchemaChecksums newsums, VxPutOpts opts ) : VxSchemaErrors
RetrieveProcSchemas ( VxSchema schema, List names, string type, int encrypted ) : void
RetrieveProcSchemasQuery ( string type, int encrypted, bool countonly, List names ) : string
RetrieveTableSchema ( VxSchema schema, List names ) : void
RetrieveXmlSchemas ( VxSchema schema, List names ) : void
XmlSchemasQuery ( int count, List names ) : string

Method Details

Csv2Inserts() public method

public Csv2Inserts ( string tablename, string csvtext ) : string
tablename string
csvtext string
return string

Dispose() public method

public Dispose ( ) : void
return void

DropSchema() public method

public DropSchema ( ) : VxSchemaErrors
return VxSchemaErrors

DropSchema() public method

public DropSchema ( IEnumerable keys ) : VxSchemaErrors
keys IEnumerable
return VxSchemaErrors

DropSchemaElement() public method

public DropSchemaElement ( string key ) : VxSchemaError
key string
return VxSchemaError

Get() public method

public Get ( IEnumerable keys ) : VxSchema
keys IEnumerable
return VxSchema

GetChecksums() public method

public GetChecksums ( ) : VxSchemaChecksums
return VxSchemaChecksums

GetSchemaData() public method

public GetSchemaData ( string tablename, int seqnum, string where, string>.Dictionary replaces, List skipfields ) : string
tablename string
seqnum int
where string
replaces string>.Dictionary
skipfields List
return string

Normalize() public method

public Normalize ( string text ) : string
text string
return string

Put() public method

public Put ( VxSchema schema, VxSchemaChecksums sums, VxPutOpts opts ) : VxSchemaErrors
schema VxSchema
sums VxSchemaChecksums
opts VxPutOpts
return VxSchemaErrors

PutSchemaData() public method

public PutSchemaData ( string tablename, string text, int seqnum ) : void
tablename string
text string
seqnum int
return void

StripMatchingParens() public static method

public static StripMatchingParens ( string s ) : string
s string
return string

VxDbSchema() public method

public VxDbSchema ( WvDbi _dbi ) : System
_dbi Wv.WvDbi
return System

WriteSchemaData() public method

public WriteSchemaData ( StreamWriter sw, string tablename, int seqnum, string where, string>.Dictionary replaces, List skipfields ) : void
sw StreamWriter
tablename string
seqnum int
where string
replaces string>.Dictionary
skipfields List
return void

bin2hex() public method

public bin2hex ( byte data ) : string
data byte
return string

wvmoniker_register() public static method

public static wvmoniker_register ( ) : void
return void