diff --git a/docs/assets/search.js b/docs/assets/search.js index 1fce51e..b56da4f 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACrWb23LjuBGG30W+1WqMIy3fZWdqayep7CSVqdy4XFO0BI+5I4kKSY3juPzuAXgQu6luiRTlKxctNPpHf40GSIKvkyx9zie3d6+TH8lmObmV08kmXrvJ7cRfuv9OppNdtvJX63S5W7n8Q/nf2VOxXvmfFqs4z503n0zepoc95Nniw8d0tXKLIkk3B135n7+1Px/tU8ibfa9Ej7VNt8ejnU8n2zhzm+JQZ+vWiHYwi3STF9luUaTZQL9X2LSPhhkpR17rNgyPSZYXQ5U0RhfS4HsZLKG2uZCCLN4s0/VQDXurC6lYpLvN4EA0RhfSsNsk/9m5oSL2VhdSsXQrVwxWsbcaoQJVnU9xET/EuSNrTvNj74pz0Bsc1r63I912xrLvD7i7lroN4sO/XFEkm+/5AI9XyKp1XuTLX5L8l22W/IzLGJNSZoQma4yye1HfvhUv2yEhAIJme+PTQWk7AQNiAvWUMvWnr6JZ3cN5spphMep2uaOXit7q6h7eRd3W9/mcZstxCkEv76JyOXzqESpBL5dSiape7oov21CQBk1YZDVA15kbFEZF383JMRkIme9wc2R/xstorS5RvToLdNn7GYLOjgleFpP8DAnI6gIq/EqfvQwR0Bic6Rstyb+71RbUQ7ggVz/1Xo47PcFx1D2xHXbU1z0x4fqfy9J/xHSBPHR01TY/5XB23K+vVu5rsna/pdk6phOGcH9gNVzFkGpCKOhbSdggoHz5e+p3hWS6lL/0zhbcDxxC1Q/XW0d01Q17L7ah06Tr4qpuecLP7KS3L9lvcdJvWFeo/SjPu23Isi/Zx8zFzC7/wPuBzSgFS+dTLKWL2IHrtvEon3zZPPB4umD28BeveoKtGo7ytXHPn/2sjTeLnjixwVDfQyrMgeu+9YV2jfYofq1a9Rxw05TYk6SFX5rd8gz/fj+zjrOXv7meeYXaX1TJD/fylbuvO5DRNr6ohsdkte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XFPujP2CcYGYazq465wacwdTnpkvzpg0EB8zpiBumX8PT5ks5kEQgQoLLvnBMdtkckwVZBDJXc+UuvJ6gd5xwB3PEmNz9gOAKLn+DMVHY4Ub3mOjDEgNyUHKVM1iyqQ/oWm55PljAFFhUFOe2SP/McXQNCK/hwNZHAkECgkXIcNHZH5QC3oBIy9FsvpNvzYA3TmJzNBNoBBwMF8bKzG9b6i9mQDxB7ihuslQfDYOEA+gEV/Lqt85gXoIFJeKiWVotmpM0IKQgOJYrIKVxgje6IDzRUbvOGm/BGCOuyFaGO3zHawH9iItO+LRvG+OtLrCTpEd/275Ntm6VbHyju/u3t/8DN0JryWxFAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACr2c23LbyBGG34W+pWnNEZDusnZtxUllN6l15calckHkyEJMEgoA2nFUfvfMgADRDXaTA4LOFU1zuvuf/hpzAAZ6mZXFt2p29/Fl9iXfrmZ3cj7bZhs3u5v5r+4/s/lsV679t02x2q1d9ab538VTvVn7n5brrKqcN5/NfsyPPVTl8s3bYr12yzovtkeu/M+f+p9P+hQyPXglPLY2Q48nnc9nz1nptvWxzj6sEX1nlsW2qsvdsi7KkXFfYdMYDQtSjrzRfRoe87KqxyrpjK6kwXsZLaG1uZKCMtuuis1YDQerK6lYFrvt6ER0RlfSsNvm/965sSIOVldSsXJrV49WcbCaoAKNOu+yOnvIKkeOOd2P0SPOkTfYrYO3E24HfTn4A+FupO6T+PCHq+t8+7kaEfEVsuqD19XqdV69fi7zr1mTY1LKgtBkjVH2IOrTp/r785gUAEGLg/H5pPROQIeYRD0VzPgTq2jRerhMVtctRt2ucvRUEa2u9fBT1D17n9+KcjVNIfDyU1Suxl96hErg5Voq0ahXufr35zAgjbpgkdUIXRcuUBgVsYuTUzIQMu9we2J9xsvora4xeg0m6Mb7BYIuzgmeFvPqAgnI6goq/Exffh8joDO4MDaakv/s1s9gPIQT8v6n6Ol44An2o/XEOhyobz0x6fqvK4u/Z/QAeRzoVd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cD6gZkhTV/qA4v1wEFoGIEx7B7mN6bAYJt7iwH8nCEGRAA3fabCMauvz0OSg70NGF7Cl46AUkCV6XketqfzARqAVzNG4ZT8SAaKFTFpSYYFeVjc6wdmILkKj5e8xo0GDSASM4mHE44ZmnABWG5eM1dQFDvoGxSbojzNqv9GSUgEwA0J4J9cdgMpNNwQ5Q36w8yAluQGsOh8Lb1ELwG4A3Xyaf2VR7AD+RTsmYFxieASMEBxKd1QYWC7GjFGjd/DKG3AtcDN87laKwwFhQK17G8OmYO7Azbt2pboIwYkH3LIfdlMlwMKBBNc7jXGU4/rErGpH1oDzgDgaqbi7iAW/ctP7x0AMTCyYgbz5qnAQ8opQkYQVMupa3dsn38DEZREDXhrYlLCYTVnNz+hVpQ3gCK4GC2rwgMLn0F2GiuUNu3VgAcoFS207zi0DbWD935FpAncInYW8a4+0sMwAxYcUbdCTxQgkCxYYO1J5SZhSMYlTXvoj0qBkKDwcdy48f+XCQIBqYpw9VC92QWJAdkJ+E0+pVK0b1XDIoIXHCCW/SFlwpW3UsFoIqAWs2VfHicRa+r4TrthDG5xgNFJLj6DcbETAKX86dEH49NIMuSzbK35ErfgHxZLtdHM6YChaS4sHXxrwpn14BL3HL9bI+QAiuQHcsl9nCwDtiB2dJyhdv9VZHeDFhx+eiO8oJYAL45beYXZ+37hSCfwFxxF+b+TyyAggPZFNyQ155SANcluLhSLpuN1bI7eQWMAYqE09kY5wh8AvqXnrQbLA4sKM+UW0buDXd4X28hR+5aDi9CP2d4QQ9KW5LD+v189pw/u3W+9Y0+3v/48T/dQoB6mkoAAA=="; \ No newline at end of file diff --git a/docs/classes/src_Collection.Collection.html b/docs/classes/src_Collection.Collection.html index 7390171..1a89da4 100644 --- a/docs/classes/src_Collection.Collection.html +++ b/docs/classes/src_Collection.Collection.html @@ -1,6 +1,6 @@
Rest
...args: any[]Readonly
[unscopables]Is an object whose properties have the value 'true' +
Rest
...args: any[]Readonly
[unscopables]Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement.
Optional
Readonly
[unscopables]?: booleanIs an object whose properties have the value 'true' when they will be absent when used in a 'with' statement.
@@ -71,9 +71,9 @@Optional
end: numberIf not specified, length of the this object is used as its default value.
Delete all models in the collection.
+Returns an iterable of key, value pairs for every entry in the array
+Determines whether all the members of an array satisfy the specified test.
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value @@ -115,7 +115,7 @@
Returns a new array with all sub-array elements concatenated into it recursively up to the +
Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
+Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
The value to locate in the array.
Optional
fromIndex: numberThe array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
@@ -199,7 +199,7 @@Return only unique items from the collection.
Collection
-Inserts new elements at the start of an array, and returns the new length of the array.
+Static
fromCreates an array from an array-like object.
diff --git a/docs/classes/src_Database.Database.html b/docs/classes/src_Database.Database.html index 21b2482..eef412b 100644 --- a/docs/classes/src_Database.Database.html +++ b/docs/classes/src_Database.Database.html @@ -1,5 +1,5 @@Database class to handle database connections and interactions.
-Private
connectionStatic
Private
dbConnect to the database.
+Private
connectionStatic
Private
dbStatic
setStatic
dateStatic
zeroBase class for all models.
-Private
attributesobject The model's attributes.
-Protected
fillablestring[] The attributes that are mass assignable.
-bool Indicates if the IDs are auto-incrementing.
-Protected
keystring The type of the primary key.
-Protected
primarystring The primary key for the model.
-bool Whether or not soft deletes are enabled.
-Protected
tablestring The table associated with the model.
-Private
clearPrivate
attributesobject The model's attributes.
+Protected
fillablestring[] The attributes that are mass assignable.
+bool Indicates if the IDs are auto-incrementing.
+Protected
keystring The type of the primary key.
+object The original attributes of the model.
+1.0.5
+Protected
primarystring The primary key for the model.
+bool Whether or not soft deletes are enabled.
+Protected
tablestring The table associated with the model.
+Private
clearDelete the model from the database, regardless of soft deletes.
+Get the value of the primary key
+Get the table name
+Check if the model is the same as another model.
+Check if the model is the same as another model.
The model to check against
boolean
-Check if the model is not the same as another model.
+Check if the model is not the same as another model.
The model to check against
boolean
-Refresh the model from the database
+Private
registerSave the model to the database
+Return the model's attributes as a JSON string.
+Touch the timestamps on the model
+Check whether the model has been soft-deleted.
+Update the model's attributes
+Static
allReturn all models from the table.
+Static
allReturn all models from the table.
Promise
Static
destroyDestroy the models for the given primary keys.
+Static
destroyStatic
findFind a model by its primary key.
+Static
findStatic
findFind a model by its primary key, and throw an error if not found.
+Static
findStatic
newCreate a new model instance.
+Static
newStatic
queryStart a query against the model's table.
+Static
queryStart a query against the model's table.
QueryBuilder
-Static
update
A collection class that extends the Array class. Mostly for convenience.
-