Enums.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #region Using directives
  2. using System;
  3. #endregion
  4. namespace System.Data.SQLiteClient.Native
  5. {
  6. internal enum SQLiteCode
  7. {
  8. Ok = 0, /* Successful result */
  9. Error = 1, /* SQL error or missing database */
  10. InternalError = 2, /* An internal logic error in SQLite */
  11. PermissionDenied = 3, /* Access permission denied */
  12. CallbackAbort = 4, /* Callback routine requested an abort */
  13. Busy = 5, /* The database file is locked */
  14. TableLocked = 6, /* A table in the database is locked */
  15. NoMemory = 7, /* A malloc() failed */
  16. ReadOnly = 8, /* Attempt to write a readonly database */
  17. Interupt = 9, /* Operation terminated by public const int interrupt() */
  18. IOError = 10, /* Some kind of disk I/O error occurred */
  19. DatabaseCorrupt = 11, /* The database disk image is malformed */
  20. DatabaseNotFound = 12, /* (Internal Only) Table or record not found */
  21. DatabaseFull = 13, /* Insertion failed because database is full */
  22. DatabaseCannotOpened = 14, /* Unable to open the database file */
  23. DatabaseLockProtocolError = 15, /* Database lock protocol error */
  24. TableEmpty = 16, /* (Internal Only) Database table is empty */
  25. DatabaseSchemaChanged = 17, /* The database schema changed */
  26. RowToBig = 18, /* Too much data for one row of a table */
  27. ContraintViolation = 19, /* Abort due to contraint violation */
  28. DataTypeMismatch = 20, /* Data type mismatch */
  29. LibraryUsedIncorrectly = 21, /* Library used incorrectly */
  30. FeatureNotSupported = 22, /* Uses OS features not supported on host */
  31. AuthorizationDenied = 23, /* Authorization denied */
  32. DatabaseFormatError = 24, /* Auxiliary database format error */
  33. OutOfRange = 25, /* 2nd parameter to sqlite_bind out of range */
  34. NoDatabaseFile = 26, /* File opened that is not a database file */
  35. RowReady = 100, /* sqlite_step() has another row ready */
  36. Done = 101, /* sqlite_step() has finished executing */
  37. }
  38. internal enum SQLiteDestructor
  39. {
  40. Static = 0,
  41. Transient = -1
  42. }
  43. internal enum SQLiteType
  44. {
  45. Integer = 1,
  46. Float = 2,
  47. Text = 3,
  48. Blob = 4,
  49. Null = 5,
  50. }
  51. }